From: Michael W. Hudson Date: Mon, 7 Oct 2002 12:21:09 +0000 (+0000) Subject: A couple of fixes for the compiler package: X-Git-Tag: v2.2.2b1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b45532abd26a9752e42ca589b5b0e49552761811;p=thirdparty%2FPython%2Fcpython.git A couple of fixes for the compiler package: * always write the mtime to a .pyc in little endian format * ensure class's docstrings get attached to the class, not the enclosing scope! Rather more fixes are needed for the trunk; these will be done in due course. --- diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index 4194d27e25e7..88146cde69ff 100644 --- a/Lib/compiler/pycodegen.py +++ b/Lib/compiler/pycodegen.py @@ -136,7 +136,7 @@ class Module(AbstractCompileMode): # to indicate the type of the value. simplest way to get the # same effect is to call marshal and then skip the code. mtime = os.stat(self.filename)[stat.ST_MTIME] - mtime = struct.pack('i', mtime) + mtime = struct.pack('