This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author complex
Recipients complex
Date 2008-06-21.15:38:05
SpamBayes Score 0.007580987
Marked as misclassified No
Message-id <1214062687.51.0.950571411825.issue3160@psf.upfronthosting.co.za>
In-reply-to
Content
Fixed by appending the b (bytes) prefix to three string literals
concatenated to cfgdata in
C:\python30\lib\distutils\command\bdist_wininst.py:

Line #262:

        # Append the pre-install script
        cfgdata = cfgdata + b"\0"
        if self.pre_install_script:
            script_data = open(self.pre_install_script, "r").read()
            cfgdata = cfgdata + script_data + b"\n\0"
        else:
            # empty pre-install script
            cfgdata = cfgdata + b"\0"
        file.write(cfgdata)

Sorry for the source code fragment. I'll try to submit a patch instead
next time.
History
Date User Action Args
2008-06-21 15:38:08complexsetspambayes_score: 0.00758099 -> 0.007580987
recipients: + complex
2008-06-21 15:38:07complexsetspambayes_score: 0.00758099 -> 0.00758099
messageid: <1214062687.51.0.950571411825.issue3160@psf.upfronthosting.co.za>
2008-06-21 15:38:06complexlinkissue3160 messages
2008-06-21 15:38:06complexcreate