Fredrik Lundh avatar Fredrik Lundh committed dc6b32e

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

Comments (0)

Files changed (2)

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?
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.