mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
f805cd2c1f
commit
f2715e0764
26 changed files with 110 additions and 114 deletions
|
@ -16,11 +16,11 @@ import zipimport
|
|||
def make_pyc(co, mtime):
|
||||
data = marshal.dumps(co)
|
||||
if type(mtime) is type(0.0):
|
||||
# Mac mtimes need a bit of special casing
|
||||
if mtime < 0x7fffffff:
|
||||
mtime = int(mtime)
|
||||
else:
|
||||
mtime = int(-0x100000000L + long(mtime))
|
||||
# Mac mtimes need a bit of special casing
|
||||
if mtime < 0x7fffffff:
|
||||
mtime = int(mtime)
|
||||
else:
|
||||
mtime = int(-0x100000000L + long(mtime))
|
||||
pyc = imp.get_magic() + struct.pack("<i", int(mtime)) + data
|
||||
return pyc
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue