diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-11 15:18:03 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-11 15:18:03 (GMT) |
| commit | cf4a2f29adb6bdae0b18e983250d7c48d486c9d6 (patch) | |
| tree | cf63125e859ee00fba60e99935de6b30bb338a78 /Lib/tarfile.py | |
| parent | 13be8c269155706bb22601518ba42a36e05ff361 (diff) | |
| download | cpython-cf4a2f29adb6bdae0b18e983250d7c48d486c9d6.zip cpython-cf4a2f29adb6bdae0b18e983250d7c48d486c9d6.tar.gz cpython-cf4a2f29adb6bdae0b18e983250d7c48d486c9d6.tar.bz2 | |
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload(). Patch by Thomas Kluyver.
Diffstat (limited to 'Lib/tarfile.py')
| -rwxr-xr-x | Lib/tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 37e4dcd..f9e5c18 100755 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -38,6 +38,7 @@ __credits__ = "Gustavo Niemeyer, Niels Gust\u00e4bel, Richard Townsend." #--------- # Imports #--------- +from builtins import open as bltn_open import sys import os import io @@ -2421,7 +2422,6 @@ def is_tarfile(name): except TarError: return False -bltn_open = open open = TarFile.open |
