summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2014-01-16 19:09:13 -0800
committerScott Maxwell <scott@codecobblers.com>2014-01-16 19:09:13 -0800
commitab8d874064d0d9ad298b0630d2ed281fde7e9b94 (patch)
tree8553a02d961692e63afc20d7fd9ea28c67da977c
parent676a30c2983f2c335ec86571e3ef7726ee735c52 (diff)
Fix getcwd when _cwd is None
-rw-r--r--paramiko/sftp_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py
index 41e763e2..0f55c6a8 100644
--- a/paramiko/sftp_client.py
+++ b/paramiko/sftp_client.py
@@ -531,7 +531,7 @@ class SFTPClient (BaseSFTP):
@since: 1.4
"""
- return u(self._cwd)
+ return self._cwd and u(self._cwd)
def putfo(self, fl, remotepath, file_size=0, callback=None, confirm=True):
"""