diff options
-rw-r--r-- | paramiko/pkey.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py index e95d60ba..7f32c8a5 100644 --- a/paramiko/pkey.py +++ b/paramiko/pkey.py @@ -318,8 +318,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(tag, f, data, password) |