[Checkins] SVN: zc.buildoutsftp/branches/dev/src/zc/buildoutsftp/urllib2sftp.py Cleanup trailing whitespace.

Jim Fulton jim at zope.com
Fri Jun 19 16:40:56 EDT 2009


Log message for revision 101153:
  Cleanup trailing whitespace.
  

Changed:
  U   zc.buildoutsftp/branches/dev/src/zc/buildoutsftp/urllib2sftp.py

-=-
Modified: zc.buildoutsftp/branches/dev/src/zc/buildoutsftp/urllib2sftp.py
===================================================================
--- zc.buildoutsftp/branches/dev/src/zc/buildoutsftp/urllib2sftp.py	2009-06-19 19:20:49 UTC (rev 101152)
+++ zc.buildoutsftp/branches/dev/src/zc/buildoutsftp/urllib2sftp.py	2009-06-19 20:40:56 UTC (rev 101153)
@@ -80,12 +80,12 @@
         trans = _connection_pool.pop(k)
         if trans is not False:
             trans.close()
-    
+
 atexit.register(cleanup)
 
 class SFTPHandler(urllib2.BaseHandler):
 
-    def sftp_open(self, req):        
+    def sftp_open(self, req):
         host = req.get_host()
         if not host:
             raise IOError, ('sftp error', 'no host given')
@@ -93,7 +93,7 @@
         parsed = parse_url_host(host)
         if not parsed:
             raise IOError, ('sftp error', 'invalid host', host)
-            
+
         user, pw, host, port = parsed.groups()
 
         host = urllib.unquote(host or '')
@@ -122,6 +122,7 @@
             raise paramiko.AuthenticationException(
                 "No stored host key", host)
 
+        import pdb; pdb.set_trace()
         if pw is not None:
             pool_key = (host, port, user, pw)
             trans = _connection_pool.get(pool_key)
@@ -159,7 +160,7 @@
             host_key = host_keys.get(remote_server_key.get_name())
             if host_key != remote_server_key:
                 raise paramiko.AuthenticationException(
-                    "Remote server authentication failed.", host) 
+                    "Remote server authentication failed.", host)
             _connection_pool[pool_key] = trans
 
         sftp = paramiko.SFTPClient.from_transport(trans)



More information about the Checkins mailing list