mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Fix open-for-writing statement
This commit is contained in:
@@ -149,7 +149,7 @@ with open(resultQl, "w") as f:
|
||||
shutil.copyfileobj(header, f)
|
||||
|
||||
# Make an empty .expected file, since this is an inline-exectations test
|
||||
with open(os.path.join(sys.argv[3], "test.expected")):
|
||||
with open(os.path.join(sys.argv[3], "test.expected"), "w"):
|
||||
pass
|
||||
|
||||
cmd = ['codeql', 'query', 'format', '-qq', '-i', resultQl]
|
||||
|
||||
Reference in New Issue
Block a user