Show More
@@ -1205,7 +1205,8 b' class SyntaxTB(ListTB):' | |||
|
1205 | 1205 | #---------------------------------------------------------------------------- |
|
1206 | 1206 | # module testing (minimal) |
|
1207 | 1207 | if __name__ == "__main__": |
|
1208 |
def spam(c, |
|
|
1208 | def spam(c, d_e): | |
|
1209 | (d, e) = d_e | |
|
1209 | 1210 | x = c + d |
|
1210 | 1211 | y = c * d |
|
1211 | 1212 | foo(x, y) |
@@ -204,10 +204,10 b' class Parser:' | |||
|
204 | 204 | return (output, error) |
|
205 | 205 | return (None, error) |
|
206 | 206 | |
|
207 |
def __call__(self, toktype, toktext, |
|
|
207 | def __call__(self, toktype, toktext, start_pos, end_pos, line): | |
|
208 | 208 | """ Token handler, with syntax highlighting.""" |
|
209 | ||
|
210 | # local shorthands | |
|
209 | (srow,scol) = start_pos | |
|
210 | (erow,ecol) = end_pos | |
|
211 | 211 | colors = self.colors |
|
212 | 212 | owrite = self.out.write |
|
213 | 213 |
@@ -274,6 +274,7 b" if 'setuptools' in sys.modules:" | |||
|
274 | 274 | 'lib2to3.fixes.fix_has_key', |
|
275 | 275 | 'lib2to3.fixes.fix_next', |
|
276 | 276 | 'lib2to3.fixes.fix_repr', |
|
277 | 'lib2to3.fixes.fix_tuple_params', | |
|
277 | 278 | ] |
|
278 | 279 | from setuptools.command.build_py import build_py |
|
279 | 280 | setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)} |
General Comments 0
You need to be logged in to leave comments.
Login now