]> granicus.if.org Git - python/commitdiff
Fix missing import.
authorGeorg Brandl <georg@python.org>
Thu, 21 Oct 2010 13:01:23 +0000 (13:01 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 21 Oct 2010 13:01:23 +0000 (13:01 +0000)
Tools/freeze/makeconfig.py

index bed6f6a962f4ecd043c6bc0deaaecc6242becc29..018992c75347b500415a31713b0cdf45c7cbc750 100644 (file)
@@ -1,5 +1,5 @@
 import re
-
+import sys
 
 # Write the config.c file
 
@@ -37,7 +37,6 @@ def makeconfig(infp, outfp, modules, with_ifdef=0):
 # Test program.
 
 def test():
-    import sys
     if not sys.argv[3:]:
         print('usage: python makeconfig.py config.c.in outputfile', end=' ')
         print('modulename ...')