import base64 at the top to avoid two different imports at other times

This commit is contained in:
Jeremy Hylton 2002-06-04 20:55:10 +00:00
parent ec772744c7
commit c58e984837
1 changed files with 2 additions and 2 deletions

View File

@ -8,6 +8,7 @@
__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 @@ def create_exe (self, arcname, fullname, bitmap=None):
# create_exe()
def get_exe_bytes (self):
import base64
return base64.decodestring(EXEDATA)
# class bdist_wininst
@ -248,7 +248,7 @@ def get_exe_bytes (self):
# - 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)