##// END OF EJS Templates
util: test fileno() availability in win32 set_binary()...
Patrick Mezard -
r6330:4e836769 default
parent child Browse files
Show More
@@ -1000,7 +1000,8 b" if os.name == 'nt':"
1000 pass
1000 pass
1001
1001
1002 def set_binary(fd):
1002 def set_binary(fd):
1003 msvcrt.setmode(fd.fileno(), os.O_BINARY)
1003 if hasattr(fd, 'fileno'):
1004 msvcrt.setmode(fd.fileno(), os.O_BINARY)
1004
1005
1005 def pconvert(path):
1006 def pconvert(path):
1006 return '/'.join(splitpath(path))
1007 return '/'.join(splitpath(path))
General Comments 0
You need to be logged in to leave comments. Login now