Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8f7d987f
Commit
8f7d987f
authored
Mar 11, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23615: Module tarfile is now can be reloaded with imp.reload().
parent
41b95df3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
Lib/tarfile.py
Lib/tarfile.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
Tools/freeze/bkfile.py
Tools/freeze/bkfile.py
+1
-1
No files found.
Lib/tarfile.py
View file @
8f7d987f
...
...
@@ -41,6 +41,7 @@ __credits__ = "Gustavo Niemeyer, Niels Gust
#---------
# Imports
#---------
from
__builtin__
import
open
as
bltn_open
import
sys
import
os
import
shutil
...
...
@@ -2611,5 +2612,4 @@ def is_tarfile(name):
except TarError:
return False
bltn_open = open
open = TarFile.open
Misc/NEWS
View file @
8f7d987f
...
...
@@ -21,6 +21,8 @@ Core and Builtins
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.
Patch by Florian Finkernagel and Davin Potts.
...
...
Tools/freeze/bkfile.py
View file @
8f7d987f
_orig_open
=
open
from
__builtin__
import
open
as
_orig_
open
class
_BkFile
:
def
__init__
(
self
,
file
,
mode
,
bufsize
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment