##// END OF EJS Templates
Well, since you ask me for Python 2.7 support...
Thomas Kluyver -
Show More
@@ -131,7 +131,8 b' class TokenInputTransformer(InputTransformer):'
131
131
132 def reset_tokenizer(self):
132 def reset_tokenizer(self):
133 it = iter(self.buf)
133 it = iter(self.buf)
134 self.tokenizer = generate_tokens(it.__next__)
134 nxt = it.__next__ if PY3 else it.next
135 self.tokenizer = generate_tokens(nxt)
135
136
136 def push(self, line):
137 def push(self, line):
137 self.buf.append(line + '\n')
138 self.buf.append(line + '\n')
General Comments 0
You need to be logged in to leave comments. Login now