##// END OF EJS Templates
pycompat: fix a bytes vs str issue in `unnamedtempfile()`...
Matt Harbison -
r47385:7a29d900 stable
parent child Browse files
Show More
@@ -510,7 +510,7 b" def mkstemp(suffix=b'', prefix=b'tmp', d"
510 # This wrapper file are always open in byte mode.
510 # This wrapper file are always open in byte mode.
511 def unnamedtempfile(mode=None, *args, **kwargs):
511 def unnamedtempfile(mode=None, *args, **kwargs):
512 if mode is None:
512 if mode is None:
513 mode = b'w+b'
513 mode = 'w+b'
514 else:
514 else:
515 mode = sysstr(mode)
515 mode = sysstr(mode)
516 assert 'b' in mode
516 assert 'b' in mode
General Comments 0
You need to be logged in to leave comments. Login now