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 0c19b6b

Browse filesBrowse files
committed
Address returning CSV reader on closed file
1 parent 10b2706 commit 0c19b6b
Copy full SHA for 0c19b6b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎scripts/shared/codeql.py

Copy file name to clipboardExpand all lines: scripts/shared/codeql.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def decode_results(self, database_path: Path, query_path: Path, **options: str)
116116
raise CodeQLError(
117117
f"Could not read the output of the query {query_path}", stdout=result.stdout, stderr=result.stderr, returncode=result.returncode)
118118
with open(temp_file) as tmp:
119-
return csv.reader(tmp)
119+
return list(csv.reader(tmp))
120120

121121
def generate_query_help(self, query_help_path: Path, output: Path, format : str = "markdown", **options: str) -> None:
122122
command = ['codeql', 'generate', 'query-help']

0 commit comments

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