Anonymous committed 948a722

#440 compatiblity for set() for py2.3

Comments (0)

Files changed (2)


 from PyInstaller import is_win, is_unix, is_cygwin, is_darwin, is_py26
 from PyInstaller.depend import dylib
 from PyInstaller.utils import winutils
+from PyInstaller.compat import set
 import PyInstaller.log as logging


         from sha import new as sha
+# In Python 2.4+ there is a builtin type set(). In Python 2.3
+# it is class Set in module sets.
+    from sets import Set as set
+except NameError:
+    from __builtin__ import set
 def architecture():
     Returns the bit depth of the python interpreter's architecture as