summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-05-08 10:31:34 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-05-08 10:31:34 -0400
commit9375e451f48b99e0cfeeb28da3c6357732f2bd07 (patch)
treefd585ae01f5dbc2e461badf6ee26318c66e9110b
parent2cea4c78317d0295d5d1a9d309e66c2b35bf0ca9 (diff)
Replace use of six with imports from py3compat
-rw-r--r--paramiko/_winapi.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/paramiko/_winapi.py b/paramiko/_winapi.py
index 84ee07fd..9ec4d44f 100644
--- a/paramiko/_winapi.py
+++ b/paramiko/_winapi.py
@@ -9,8 +9,7 @@ in jaraco.windows and asking the author to port the fixes back here.
import sys
import ctypes.wintypes
-import six
-from six.moves import builtins
+from paramiko.py3compat import u, builtins
######################
@@ -142,7 +141,7 @@ class MemoryMap(object):
FILE_MAP_WRITE = 0x2
filemap = ctypes.windll.kernel32.CreateFileMappingW(
INVALID_HANDLE_VALUE, p_SA, PAGE_READWRITE, 0, self.length,
- six.text_type(self.name))
+ u(self.name))
handle_nonzero_success(filemap)
if filemap == INVALID_HANDLE_VALUE:
raise Exception("Failed to create file mapping")