Commits

Anonymous committed c747d3f

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

  • Participants
  • Parent commits 8593f7e

Comments (0)

Files changed (1)

File lib3to2/main.py

             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):