Commits

Anthony Tuininga committed e797853 Merge

Merged in takluyver/cx_freeze/fix-re-py3 (pull request #18)

Ensure re module is copied on Python 3

Comments (0)

Files changed (1)

cx_Freeze/finder.py

         self.ExcludeModule("doctest")
         self.ExcludeModule("getopt")
         self.ExcludeModule("logging")
-        self.ExcludeModule("re")
+        if sys.version_info[0] < 3:
+            # On Python 3, traceback -> linecache -> tokenize -> re, so
+            # we need to let it be loaded.
+            self.ExcludeModule("re")
         self.ExcludeModule("subprocess")
         self.IncludeModule("traceback")
         self.IncludeModule("warnings")