]> granicus.if.org Git - python/commitdiff
Fix bootstrap after r80166
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 18 Apr 2010 11:16:24 +0000 (11:16 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 18 Apr 2010 11:16:24 +0000 (11:16 +0000)
Lib/platform.py

index 495433d525964ebba60d8248c52f36dcff4aa776..b213a925b8dc48eeaae195f06fd9f801a3a1b9f7 100755 (executable)
@@ -113,7 +113,7 @@ __copyright__ = """
 
 __version__ = '1.0.7'
 
-import sys, string, os, re, subprocess
+import sys, string, os, re
 
 ### Globals & Constants
 
@@ -966,6 +966,7 @@ def _syscmd_file(target,default=''):
     if sys.platform in ('dos','win32','win16','os2'):
         # XXX Others too ?
         return default
+    import subprocess
     target = _follow_symlinks(target)
     try:
         proc = subprocess.Popen(