]> granicus.if.org Git - python/commit
Issue #17220: two fixes for changeset 2528e4aea338.
authorBrett Cannon <brett@python.org>
Mon, 25 Feb 2013 22:10:11 +0000 (17:10 -0500)
committerBrett Cannon <brett@python.org>
Mon, 25 Feb 2013 22:10:11 +0000 (17:10 -0500)
commitc19038983425fee91958d51b3eefcb56dfc9f0f1
tree6453681d94393f19b71bf6bedadf67e9ceec6f1d
parent91d0ca72de9ef3e49adba508e0752b084f1b5a06
Issue #17220: two fixes for changeset 2528e4aea338.

First, because the mtime can exceed 4 bytes, make sure to mask it down to 4
bytes before getting its little-endian representation for writing out to a .pyc
file.

Two, cap an rsplit() call to 1 split, else can lead to too many values being
returned for unpacking.
Lib/importlib/_bootstrap.py
Python/importlib.h