##// END OF EJS Templates
Add an extra condition to SystemAssign....
Tony Fast -
Show More
@@ -234,6 +234,7 b' class SystemAssign(TokenTransformBase):'
234 for line in tokens_by_line:
234 for line in tokens_by_line:
235 assign_ix = _find_assign_op(line)
235 assign_ix = _find_assign_op(line)
236 if (assign_ix is not None) \
236 if (assign_ix is not None) \
237 and not line[assign_ix].line.strip().startswith('=') \
237 and (len(line) >= assign_ix + 2) \
238 and (len(line) >= assign_ix + 2) \
238 and (line[assign_ix + 1].type == tokenize.ERRORTOKEN):
239 and (line[assign_ix + 1].type == tokenize.ERRORTOKEN):
239 ix = assign_ix + 1
240 ix = assign_ix + 1
General Comments 0
You need to be logged in to leave comments. Login now