summaryrefslogtreecommitdiff
path: root/paramiko/pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2016-12-05 20:47:30 -0800
committerJeff Forcier <jeff@bitprophet.org>2016-12-05 20:47:30 -0800
commit491d4a758264618bf236e8183d377fa4be7c6433 (patch)
tree42deca4b068772c2e047a51a924bb34c2e0c12ab /paramiko/pkey.py
parent8bfc5c864fd4539ebd23b19d4335620d53c3e472 (diff)
parent26b915f6ba2c54ff4534f1801f2eac1d0a822a93 (diff)
downloadparamiko-491d4a758264618bf236e8183d377fa4be7c6433.tar.gz
Merge branch '1.18' into 2.0
Diffstat (limited to 'paramiko/pkey.py')
-rw-r--r--paramiko/pkey.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index 0637a6f0..c87daaed 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -333,8 +333,7 @@ class PKey(object):
:raises IOError: if there was an error writing the file.
"""
- with open(filename, 'w', o600) as f:
- # grrr... the mode doesn't always take hold
+ with open(filename, 'w') as f:
os.chmod(filename, o600)
self._write_private_key(f, key, format)