- s = self.rfh.read(1)
- if s == '': raise Exception
- if s == '\n' and state == 0: state = 1
- if s == '#' and state == 1: state = 2
- if s == ' ' and state == 2: state = 3
+ s = self.rfh.read(1)
+ if s == '': raise Exception
+ if s == '\n' and state == 0: state = 1
+ if (s == '#' or s == '%') and state == 1: state = 2
+ if s == ' ' and state == 2: state = 3