Skip to content

Commit 115983e

Browse files
authored
fix: remove binary keyword for opening xml/csv files (#47)
1 parent d776fae commit 115983e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nsiqcppstyle_reporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ def PrepareReport(outputPath, format):
4747
if format == "csv":
4848
if os.path.isdir(outputPath):
4949
outputPath = os.path.join(outputPath, "nsiqcppstyle_report.csv")
50-
csvfile = open(outputPath, "wb")
50+
csvfile = open(outputPath, "w")
5151
writer = csv.writer(csvfile)
5252
writer.writerow(("File", "Line", "Column",
5353
"Message", "Rule", "Rule Url"))
5454
elif format == "xml":
5555
if os.path.isdir(outputPath):
5656
outputPath = os.path.join(outputPath, "nsiqcppstyle_report.xml")
57-
writer = open(outputPath, "wb")
57+
writer = open(outputPath, "w")
5858
writer.write("<?xml version='1.0'?>\n<checkstyle version='4.4'>\n")
5959

6060

0 commit comments

Comments
 (0)