Commits

Benjamin Peterson committed 3ce922a

don't return node if it is not changed

  • Participants
  • Parent commits e77220e

Comments (0)

Files changed (1)

File lib2to3/fixes/fix_tuple_params.py

                     handle_tuple(arg, add_prefix=(i > 0))
 
         if not new_lines:
-            return node
+            return
 
         # This isn't strictly necessary, but it plays nicely with other fixers.
         # TODO(cwinter) get rid of this when children becomes a smart list