summaryrefslogtreecommitdiff
path: root/paramiko/win_pageant.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2012-02-13 14:39:20 -0800
committerJeff Forcier <jeff@bitprophet.org>2012-09-23 16:10:50 -0700
commit9b2f36fc1f0aa0729a96dc2a973c285626599d1e (patch)
tree4d0067587b96ebb3c4d97ef3ebb34e75e838bc2f /paramiko/win_pageant.py
parent1882f3470b8d16b56fd958e6dbd9e6c8a0666946 (diff)
downloadparamiko-9b2f36fc1f0aa0729a96dc2a973c285626599d1e.tar.gz
Whitespace tweaks, thanks @jaraco
(cherry picked from commit 3b20efcc141f6ddafe65fcdedba3800b817eb5f5)
Diffstat (limited to 'paramiko/win_pageant.py')
-rw-r--r--paramiko/win_pageant.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/paramiko/win_pageant.py b/paramiko/win_pageant.py
index 787032b8..16fa48e5 100644
--- a/paramiko/win_pageant.py
+++ b/paramiko/win_pageant.py
@@ -42,7 +42,6 @@ except ImportError:
except ImportError:
pass
-
_AGENT_COPYDATA_ID = 0x804e50ba
_AGENT_MAX_MSGLEN = 8192
# Note: The WM_COPYDATA value is pulled from win32con, as a workaround
@@ -108,7 +107,7 @@ def _query_pageant(msg):
response = ctypes.windll.user32.SendMessageA(hwnd, win32con_WM_COPYDATA, _size, _addr)
else:
response = 0
-
+
if response > 0:
datalen = pymap.read(4)
retlen = struct.unpack('>I', datalen)[0]
@@ -131,10 +130,10 @@ class PageantConnection (object):
def __init__(self):
self._response = None
-
+
def send(self, data):
self._response = _query_pageant(data)
-
+
def recv(self, n):
if self._response is None:
return ''