Permalink
Browse files

fix bug

  • Loading branch information...
sunng87 committed Feb 27, 2012
1 parent 3e3370b commit eecc61feb46c0d4ae546f27baed7a4a840e607d3
Showing with 2 additions and 1 deletion.
  1. +2 −1 clj.py
View
3 clj.py
@@ -97,13 +97,14 @@ def __get_type_from_char(self, c):
return (None, False, None)
def __read_fd(self, size):
- self.cur_pos = self.cur_pos + size
if size == 1:
c = self.fd.read(size)
if c == '\n':
+ self.cur_pos = 0
self.cur_line = self.cur_line + 1
return c
else:
+ self.cur_pos = self.cur_pos + size
cs = self.fd.read(size)
return cs

0 comments on commit eecc61f

Please sign in to comment.