diff options
author | Brett Cannon <brett@python.org> | 2012-07-02 19:13:11 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-07-02 19:13:11 (GMT) |
commit | 98979b85e7fa164b365635b99b83d91f30773850 (patch) | |
tree | 71a1350c1fa9c1129c4872401e925bb4b5a38c25 /Lib/importlib | |
parent | 8e2f5564b3cce162aa1427dcd26092f24f418418 (diff) | |
download | cpython-98979b85e7fa164b365635b99b83d91f30773850.zip cpython-98979b85e7fa164b365635b99b83d91f30773850.tar.gz cpython-98979b85e7fa164b365635b99b83d91f30773850.tar.bz2 |
Issue #15166: Re-implement imp.get_tag() using sys.implementation.
Also eliminates some C code in Python/import.c as well.
Patch by Eric Snow with verification by comparing against another
patch from Jeff Knupp.
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 36c0e88..21af7ac 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -1452,7 +1452,7 @@ def _setup(sys_module, _imp_module): # Constants setattr(self_module, '_relax_case', _make_relax_case()) setattr(self_module, '_MAGIC_NUMBER', _imp_module.get_magic()) - setattr(self_module, '_TAG', _imp.get_tag()) + setattr(self_module, '_TAG', sys.implementation.cache_tag) if builtin_os == 'nt': SOURCE_SUFFIXES.append('.pyw') |