Commits

mat...@6d373633-9ee7-468a-befa-14b9e37bb2df  committed 948a722

#440 compatiblity for set() for py2.3

  • Participants
  • Parent commits 088577c

Comments (0)

Files changed (2)

File PyInstaller/bindepend.py

 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

File PyInstaller/compat.py

         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.
+try:
+    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