summaryrefslogtreecommitdiffstats
path: root/Lib/bz2.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-11 15:18:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-11 15:18:03 (GMT)
commitcf4a2f29adb6bdae0b18e983250d7c48d486c9d6 (patch)
treecf63125e859ee00fba60e99935de6b30bb338a78 /Lib/bz2.py
parent13be8c269155706bb22601518ba42a36e05ff361 (diff)
downloadcpython-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/bz2.py')
-rw-r--r--Lib/bz2.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/bz2.py b/Lib/bz2.py
index 6f47bfa..6c5a60d 100644
--- a/Lib/bz2.py
+++ b/Lib/bz2.py
@@ -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):