diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-03-07 11:36:49 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-03-07 11:36:49 -0800 |
commit | 8f49c15258925fa5f273c21abb783f73356ca9db (patch) | |
tree | d0ef0c9059c64bc87baaff9dd4c28dc0233eeb2b | |
parent | 0edffbb040ecf9e08545ad6a5f267ffaf45df2ba (diff) |
I was really hoping this was causing a lot of the test errors :(
-rw-r--r-- | paramiko/pkey.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py index 04d61e95..bc68b6cc 100644 --- a/paramiko/pkey.py +++ b/paramiko/pkey.py @@ -318,9 +318,9 @@ 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 + # grrr... the mode doesn't always take hold os.chmod(filename, o600) - self._write_private_key(tag, f, data, password) + self._write_private_key(tag, f, data, password) def _write_private_key(self, tag, f, data, password=None): f.write('-----BEGIN %s PRIVATE KEY-----\n' % tag) |