Skip to content

Commit

Permalink
Fixed Python 2 issue with unicode strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ttusar committed Mar 13, 2019
1 parent b7bc7c6 commit e73f163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code-postprocessing/cocopp/archiving.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def find(self, *substrs):
for s in substrs:
rex = _re.compile(s, _re.IGNORECASE)
try:
names = [name for name in names if rex.match(name) or s.lower() in name.lower()]
names = [str(name) for name in names if rex.match(name) or s.lower() in name.lower()]
except AttributeError:
warnings.warn("arguments to `find` must be strings or a "
"single integer or an integer list")
Expand Down

0 comments on commit e73f163

Please sign in to comment.