summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:55:10 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:55:10 (GMT)
commitc58e98483788b7e55af871eb9ebdbe56a2b3d109 (patch)
tree6040bda995b3be2f20189f0162f357429e99c23e /Lib/distutils
parentec772744c7802fe7591b542ebe1116124b6f9312 (diff)
downloadcpython-c58e98483788b7e55af871eb9ebdbe56a2b3d109.zip
cpython-c58e98483788b7e55af871eb9ebdbe56a2b3d109.tar.gz
cpython-c58e98483788b7e55af871eb9ebdbe56a2b3d109.tar.bz2
import base64 at the top to avoid two different imports at other times
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/bdist_wininst.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index 6a985f1..f018f46 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -8,6 +8,7 @@ exe-program."""
__revision__ = "$Id$"
import sys, os, string
+import base64
from distutils.core import Command
from distutils.util import get_platform
from distutils.dir_util import create_tree, remove_tree
@@ -231,7 +232,6 @@ class bdist_wininst (Command):
# create_exe()
def get_exe_bytes (self):
- import base64
return base64.decodestring(EXEDATA)
# class bdist_wininst
@@ -248,7 +248,7 @@ if __name__ == '__main__':
# - Built wininst.exe from the MSVC project file distutils/misc/wininst.dsw
# - Execute this file (distutils/distutils/command/bdist_wininst.py)
- import re, base64
+ import re
moddata = open("bdist_wininst.py", "r").read()
exedata = open("../../misc/wininst.exe", "rb").read()
print "wininst.exe length is %d bytes" % len(exedata)