diff options
author | Brett Cannon <brett@python.org> | 2012-01-25 23:58:03 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-01-25 23:58:03 (GMT) |
commit | c264e3ee206d5e5d1cb2aeff2cb0cd864dce83c8 (patch) | |
tree | dd9152609b6e0afb824d9aa731cae056e0cb1cb1 /Lib/importlib/abc.py | |
parent | b0f30c9891a3ef45d616bf3ae73d764fd539946b (diff) | |
download | cpython-c264e3ee206d5e5d1cb2aeff2cb0cd864dce83c8.zip cpython-c264e3ee206d5e5d1cb2aeff2cb0cd864dce83c8.tar.gz cpython-c264e3ee206d5e5d1cb2aeff2cb0cd864dce83c8.tar.bz2 |
Move some code from importlib.__init__ to importlib._bootstrap that
does not need to be exposed from C code for bootstrapping reasons.
Diffstat (limited to 'Lib/importlib/abc.py')
-rw-r--r-- | Lib/importlib/abc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index 0d37629..c4b7187 100644 --- a/Lib/importlib/abc.py +++ b/Lib/importlib/abc.py @@ -260,7 +260,7 @@ class PyPycLoader(PyLoader): raw_timestamp = data[4:8] if len(raw_timestamp) < 4: raise EOFError("bad timestamp in {}".format(fullname)) - pyc_timestamp = marshal._r_long(raw_timestamp) + pyc_timestamp = _bootstrap._r_long(raw_timestamp) bytecode = data[8:] # Verify that the magic number is valid. if imp.get_magic() != magic: @@ -292,7 +292,7 @@ class PyPycLoader(PyLoader): # Generate bytecode and write it out. if not sys.dont_write_bytecode: data = bytearray(imp.get_magic()) - data.extend(marshal._w_long(source_timestamp)) + data.extend(_bootstrap._w_long(source_timestamp)) data.extend(marshal.dumps(code_object)) self.write_bytecode(fullname, data) return code_object |