##// END OF EJS Templates
pycompat: update comment about unnamedtempfile...
marmoute -
r46318:d1072cba default
parent child Browse files
Show More
@@ -506,7 +506,8 b" def mkstemp(suffix=b'', prefix=b'tmp', d"
506 return tempfile.mkstemp(suffix, prefix, dir)
506 return tempfile.mkstemp(suffix, prefix, dir)
507
507
508
508
509 # mode must include 'b'ytes as encoding= is not supported
509 # NamedTemporaryFile does not support an "encoding=" argument on python2.
510 # This wrapper file are always open in byte mode.
510 def namedtempfile(
511 def namedtempfile(
511 mode=b'w+b', bufsize=-1, suffix=b'', prefix=b'tmp', dir=None, delete=True
512 mode=b'w+b', bufsize=-1, suffix=b'', prefix=b'tmp', dir=None, delete=True
512 ):
513 ):
General Comments 0
You need to be logged in to leave comments. Login now