From: Thomas Heller Date: Mon, 19 Jul 2004 09:45:46 +0000 (+0000) Subject: The binary layout of cfgdata has changed, so the magic number has to X-Git-Tag: v2.4a2~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8f134e3c3a4bd2e88d56d97c22f52c2e1c50f76;p=python The binary layout of cfgdata has changed, so the magic number has to change as well. Add a comment explaining this. --- diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py index d91c08936c..79c95ae2ae 100644 --- a/Lib/distutils/command/bdist_wininst.py +++ b/Lib/distutils/command/bdist_wininst.py @@ -253,8 +253,14 @@ class bdist_wininst (Command): # empty pre-install script cfgdata = cfgdata + "\0" file.write(cfgdata) + + # The 'magic number' 0x1234567B is used to make sure that the + # binary layout of 'cfgdata' is what the wininst.exe binary + # expects. If the layout changes, increment that number, make + # the corresponding changes to the wininst.exe sources, and + # recompile them. header = struct.pack("