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 = |
|
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