mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -9,6 +9,7 @@ __all__ = ["BZ2File", "BZ2Compressor", "BZ2Decompressor",
|
|||
|
||||
__author__ = "Nadeem Vawda <nadeem.vawda@gmail.com>"
|
||||
|
||||
from builtins import open as _builtin_open
|
||||
import io
|
||||
import warnings
|
||||
|
||||
|
|
@ -27,8 +28,6 @@ _MODE_WRITE = 3
|
|||
|
||||
_BUFFER_SIZE = 8192
|
||||
|
||||
_builtin_open = open
|
||||
|
||||
|
||||
class BZ2File(io.BufferedIOBase):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue