Skip to content

Commit

Permalink
Merge pull request #125 from segevfiner/patch-1
Browse files Browse the repository at this point in the history
Fix exception in Python 3.7 due to bad re.sub replacment escapes
  • Loading branch information
RonnyPfannschmidt committed Jun 23, 2017
2 parents 5be7005 + 815cad4 commit 2aa2ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/_path/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def sysfind(cls, name, checker=None, paths=None):
except KeyError:
pass
else:
paths = [re.sub('%SystemRoot%', systemroot, path)
paths = [path.replace('%SystemRoot%', systemroot)
for path in paths]
else:
paths = py.std.os.environ['PATH'].split(':')
Expand Down

0 comments on commit 2aa2ec6

Please sign in to comment.