Skip to content

Commit

Permalink
Do not mess with path separators on windows.
Browse files Browse the repository at this point in the history
This made the next statement not match file:///
  • Loading branch information
menesis committed Apr 18, 2011
1 parent dbdd881 commit f82531d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/z3c/rml/rml2pdfscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def testOpen(img, filename):
# cleanup win paths like:
# ....\\input\\file:///D:\\trunk\\...
if sys.platform[:3].lower() == "win":
filename = filename.replace('/', '\\')
if filename.startswith('file:///'):
filename = filename[len('file:///'):]
path = os.path.join(os.path.dirname(xmlInputName), filename)
Expand Down
1 change: 0 additions & 1 deletion src/z3c/rml/tests/test_rml.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def testOpen(img, filename):
# cleanup win paths like:
# ....\\input\\file:///D:\\trunk\\...
if sys.platform[:3].lower() == "win":
filename.replace('/', '\\')
if filename.startswith('file:///'):
filename = filename[len('file:///'):]
path = os.path.join(os.path.dirname(self._inPath), filename)
Expand Down

0 comments on commit f82531d

Please sign in to comment.