From 8f49c15258925fa5f273c21abb783f73356ca9db Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 7 Mar 2014 11:36:49 -0800 Subject: [PATCH] I was really hoping this was causing a lot of the test errors :( --- paramiko/pkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paramiko/pkey.py b/paramiko/pkey.py index 04d61e9..bc68b6c 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)