Commit 8f7d987f authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #23615: Module tarfile is now can be reloaded with imp.reload().

parent 41b95df3
...@@ -41,6 +41,7 @@ __credits__ = "Gustavo Niemeyer, Niels Gust ...@@ -41,6 +41,7 @@ __credits__ = "Gustavo Niemeyer, Niels Gust
#--------- #---------
# Imports # Imports
#--------- #---------
from __builtin__ import open as bltn_open
import sys import sys
import os import os
import shutil import shutil
...@@ -2611,5 +2612,4 @@ def is_tarfile(name): ...@@ -2611,5 +2612,4 @@ def is_tarfile(name):
except TarError: except TarError:
return False return False
bltn_open = open
open = TarFile.open open = TarFile.open
...@@ -21,6 +21,8 @@ Core and Builtins ...@@ -21,6 +21,8 @@ Core and Builtins
Library Library
------- -------
- Issue #23615: Module tarfile is now can be reloaded with imp.reload().
- Issue #22853: Fixed a deadlock when use multiprocessing.Queue at import time. - Issue #22853: Fixed a deadlock when use multiprocessing.Queue at import time.
Patch by Florian Finkernagel and Davin Potts. Patch by Florian Finkernagel and Davin Potts.
......
_orig_open = open from __builtin__ import open as _orig_open
class _BkFile: class _BkFile:
def __init__(self, file, mode, bufsize): def __init__(self, file, mode, bufsize):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment