summaryrefslogtreecommitdiffhomepage
path: root/tests/stub_sftp.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-10-30 17:14:52 -0700
committerScott Maxwell <scott@codecobblers.com>2013-10-30 17:14:52 -0700
commit0b7d0cf0a23e4f16f8552ae05a66539119e2e920 (patch)
tree2ba26a535dceb8b2684adedae99fdbc4c77b3a67 /tests/stub_sftp.py
parent2d738fa08b85c5065cc898d5f9e4d36ee753e871 (diff)
Convert and detect types properly, use helper constants, use StringIO and range
Diffstat (limited to 'tests/stub_sftp.py')
-rw-r--r--tests/stub_sftp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stub_sftp.py b/tests/stub_sftp.py
index b8bea9b5..26ca13b3 100644
--- a/tests/stub_sftp.py
+++ b/tests/stub_sftp.py
@@ -104,7 +104,7 @@ class StubSFTPServer (SFTPServerInterface):
else:
# os.open() defaults to 0777 which is
# an odd default mode for files
- fd = os.open(path, flags, 0666)
+ fd = os.open(path, flags, o666)
except OSError:
e = sys.exc_info()[1]
return SFTPServer.convert_errno(e.errno)