Commits

Fredrik Lundh  committed dc6b32e

Remove architecture check since add_directory checks if the directory
exists anyway.

  • Participants
  • Parent commits 0e94e2f

Comments (0)

Files changed (2)

File PIL/ImageSupport3.py

 def isTupleType(t):
     return isinstance(t, tuple)
 
-def isCallable(f):
+def isCallable(t):
     return isinstance(t, collections.Callable)
 
 def str2bytes(s):
 
 import glob, os, re, struct, sys
 
-try:
-    from platform import architecture
-except ImportError:
-    # Python 2.2
-    def architecture():
-        if isinstance(2**40, long):
-            return ("32bit", "")
-        else:
-            return ("64bit", "")
-
 # make it possible to run the setup script from another directory
 try:
     os.chdir(os.path.dirname(sys.argv[0]))
             add_directory(include_dirs, "/usr/x11/include")
 
         elif sys.platform == "linux2":
-            if architecture()[0] == "64bit":
-                add_directory(library_dirs, "/lib64")
-                add_directory(library_dirs, "/usr/lib64")
+            add_directory(library_dirs, "/lib64")
+            add_directory(library_dirs, "/usr/lib64")
 
         add_directory(library_dirs, "/usr/local/lib")
         # FIXME: check /opt/stuff directories here?