Skip to content

Commit

Permalink
Merge pull request #1 from jougs/feature/reformat-names-header
Browse files Browse the repository at this point in the history
Fix bytestring problems occuring with Python3
  • Loading branch information
lekshmideepu authored Apr 5, 2018
2 parents 81b8d92 + 137ab55 commit 1d8db4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testsuite/unittests/test_unused_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def get_names(fname, pattern):
grep_cmd = ["grep", "-ro", "names::[A-Za-Z0-9_]*", source_dir]
names_used_raw = check_output(grep_cmd)

if isinstance(names_used_raw, bytes):
names_used_raw = str(names_used_raw.decode())

names_used = set()
for line in names_used_raw.split("\n"):
Expand Down

0 comments on commit 1d8db4e

Please sign in to comment.