From 9375e451f48b99e0cfeeb28da3c6357732f2bd07 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 8 May 2015 10:31:34 -0400 Subject: Replace use of six with imports from py3compat --- paramiko/_winapi.py | 5 ++--- 1 file 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") -- cgit v1.2.3