diff options
-rw-r--r-- | paramiko/_winapi.py | 5 |
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") |