mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload(). Patch by Thomas Kluyver.
This commit is contained in:
parent
13be8c2691
commit
cf4a2f29ad
5 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue