##// END OF EJS Templates
apply tuple_param_fix
Matthias BUSSONNIER -
Show More
@@ -1205,7 +1205,8 b' class SyntaxTB(ListTB):'
1205 #----------------------------------------------------------------------------
1205 #----------------------------------------------------------------------------
1206 # module testing (minimal)
1206 # module testing (minimal)
1207 if __name__ == "__main__":
1207 if __name__ == "__main__":
1208 def spam(c, (d, e)):
1208 def spam(c, d_e):
1209 (d, e) = d_e
1209 x = c + d
1210 x = c + d
1210 y = c * d
1211 y = c * d
1211 foo(x, y)
1212 foo(x, y)
@@ -204,10 +204,10 b' class Parser:'
204 return (output, error)
204 return (output, error)
205 return (None, error)
205 return (None, error)
206
206
207 def __call__(self, toktype, toktext, (srow,scol), (erow,ecol), line):
207 def __call__(self, toktype, toktext, start_pos, end_pos, line):
208 """ Token handler, with syntax highlighting."""
208 """ Token handler, with syntax highlighting."""
209
209 (srow,scol) = start_pos
210 # local shorthands
210 (erow,ecol) = end_pos
211 colors = self.colors
211 colors = self.colors
212 owrite = self.out.write
212 owrite = self.out.write
213
213
General Comments 0
You need to be logged in to leave comments. Login now