mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
Merged revisions 80616 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80616 | lars.gustaebel | 2010-04-29 17:23:38 +0200 (Thu, 29 Apr 2010) | 4 lines Issue #8464: tarfile.open(name, mode="w|") no longer creates files with execute permissions set. ........
This commit is contained in:
parent
ffa155ad83
commit
d6eb70b7b4
3 changed files with 22 additions and 1 deletions
|
@ -359,7 +359,7 @@ class _LowLevelFile:
|
|||
}[mode]
|
||||
if hasattr(os, "O_BINARY"):
|
||||
mode |= os.O_BINARY
|
||||
self.fd = os.open(name, mode)
|
||||
self.fd = os.open(name, mode, 0o666)
|
||||
|
||||
def close(self):
|
||||
os.close(self.fd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue