Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07fbf83

Browse filesBrowse files
thefourtheyervagg
authored andcommitted
tools: open test.tap file in write-binary mode
By default the logfile is opened in append mode. This commit makes sure that the file is opened in write-binary mode, so that the file will be created if it doesn't exist or overwrite if it exists. Fixes: #2834 PR-URL: #2837 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
1 parent ed08783 commit 07fbf83
Copy full SHA for 07fbf83

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎tools/test.py‎

Copy file name to clipboardExpand all lines: tools/test.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ def Main():
14181418
logger.addHandler(ch)
14191419
logger.setLevel(logging.INFO)
14201420
if options.logfile:
1421-
fh = logging.FileHandler(options.logfile)
1421+
fh = logging.FileHandler(options.logfile, mode='wb')
14221422
logger.addHandler(fh)
14231423

14241424
workspace = abspath(join(dirname(sys.argv[0]), '..'))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.