Show More
@@ -158,13 +158,13 b' class TokenInputTransformer(InputTransformer):' | |||||
158 | return self.output(tokens) |
|
158 | return self.output(tokens) | |
159 |
|
159 | |||
160 | def output(self, tokens): |
|
160 | def output(self, tokens): | |
161 |
self.buf |
|
161 | self.buf[:] = [] | |
162 | self.reset_tokenizer() |
|
162 | self.reset_tokenizer() | |
163 | return untokenize(self.func(tokens)).rstrip('\n') |
|
163 | return untokenize(self.func(tokens)).rstrip('\n') | |
164 |
|
164 | |||
165 | def reset(self): |
|
165 | def reset(self): | |
166 | l = ''.join(self.buf) |
|
166 | l = ''.join(self.buf) | |
167 |
self.buf |
|
167 | self.buf[:] = [] | |
168 | self.reset_tokenizer() |
|
168 | self.reset_tokenizer() | |
169 | if l: |
|
169 | if l: | |
170 | return l.rstrip('\n') |
|
170 | return l.rstrip('\n') |
General Comments 0
You need to be logged in to leave comments.
Login now