Skip to content

Commit 2d88561

Browse files
authored
bot: Don't unnecessarily decode report before json.loads call (#331)
1 parent ee9e323 commit 2d88561

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bot/code_coverage_bot/zero_coverage.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ def generate(self, artifacts, hgrev, out_dir="."):
9393
report = grcov.report(
9494
artifacts, out_format="coveralls+", source_dir=self.repo_dir
9595
)
96-
report = json.loads(
97-
report.decode("utf-8")
98-
) # Decoding is only necessary until Python 3.6.
96+
report = json.loads(report)
9997

10098
zero_coverage_files = set()
10199
zero_coverage_functions = {}

0 commit comments

Comments
 (0)