1. Joe Amenta
  2. lib3to2


Steven Silvester  committed c747d3f

Fixed bug where trying to print unicode characters made the tool crash

  • Participants
  • Parent commits 8593f7e
  • Branches default

Comments (0)

Files changed (1)

File lib3to2/main.py

View file
  • Ignore whitespace
             self.log_message("Refactored %s", filename)
             if self.show_diffs:
                 for line in diff_texts(old, new, filename):
-                    print(line)
+                    try:
+                        print(line)
+                    except:
+                        pass
 def warn(msg):