From b45532abd26a9752e42ca589b5b0e49552761811 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Mon, 7 Oct 2002 12:21:09 +0000 Subject: 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. --- Lib/compiler/pycodegen.py | 9 +++++---- Lib/compiler/symbols.py | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index 4194d27..88146cd 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('