Browse Source

subprocess's mswindows attribute has gone private in 3.5

See: https://bugs.python.org/issue10838
Elsewhere, we look at sys.platform directly, so do it here too.
Stefano Rivera 9 years ago
parent
commit
4a46d680f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dulwich/client.py

+ 1 - 1
dulwich/client.py

@@ -662,7 +662,7 @@ class SubprocessWrapper(object):
         self.write = proc.stdin.write
 
     def can_read(self):
-        if subprocess.mswindows:
+        if sys.platform == 'win32':
             from msvcrt import get_osfhandle
             from win32pipe import PeekNamedPipe
             handle = get_osfhandle(self.proc.stdout.fileno())