Commits

Amaury Forgeot d'Arc committed 70fa7b2

Same trick as ad57911bdbc4, allows to import ctypes.util.

  • Participants
  • Parent commits 8cfe11f
  • Branches py3.3

Comments (0)

Files changed (1)

File lib-python/3/ctypes/util.py

 
 elif os.name == "posix":
     # Andreas Degert's find functions, using gcc, /sbin/ldconfig, objdump
-    import re, tempfile, errno
+    import re, errno
 
     def _findLib_gcc(name):
+        import tempfile
         expr = r'[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name)
         fdout, ccout = tempfile.mkstemp()
         os.close(fdout)