Commit 58596909 authored by Jeremy Hylton's avatar Jeremy Hylton

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

parent 54e7ddc6
...@@ -8,6 +8,7 @@ exe-program.""" ...@@ -8,6 +8,7 @@ exe-program."""
__revision__ = "$Id$" __revision__ = "$Id$"
import sys, os, string import sys, os, string
import base64
from distutils.core import Command from distutils.core import Command
from distutils.util import get_platform from distutils.util import get_platform
from distutils.dir_util import create_tree, remove_tree from distutils.dir_util import create_tree, remove_tree
...@@ -231,7 +232,6 @@ class bdist_wininst (Command): ...@@ -231,7 +232,6 @@ class bdist_wininst (Command):
# create_exe() # create_exe()
def get_exe_bytes (self): def get_exe_bytes (self):
import base64
return base64.decodestring(EXEDATA) return base64.decodestring(EXEDATA)
# class bdist_wininst # class bdist_wininst
...@@ -248,7 +248,7 @@ if __name__ == '__main__': ...@@ -248,7 +248,7 @@ if __name__ == '__main__':
# - Built wininst.exe from the MSVC project file distutils/misc/wininst.dsw # - Built wininst.exe from the MSVC project file distutils/misc/wininst.dsw
# - Execute this file (distutils/distutils/command/bdist_wininst.py) # - Execute this file (distutils/distutils/command/bdist_wininst.py)
import re, base64 import re
moddata = open("bdist_wininst.py", "r").read() moddata = open("bdist_wininst.py", "r").read()
exedata = open("../../misc/wininst.exe", "rb").read() exedata = open("../../misc/wininst.exe", "rb").read()
print "wininst.exe length is %d bytes" % len(exedata) print "wininst.exe length is %d bytes" % len(exedata)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment