Skip to content

Commit 3eea708

Browse files
authored
Add files via upload
1 parent 5491530 commit 3eea708

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pycatfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def RemoveWindowsPath(dpath):
869869
"""
870870
if not dpath:
871871
return ""
872-
if(re.findall("^(file):///", dpath)):
872+
if(re.findall("^file:/{2,3}", dpath)):
873873
dparsed = urlparse(dpath)
874874
dpath = url2pathname(dparsed.path)
875875
# Accept bytes and decode safely
@@ -887,7 +887,7 @@ def NormalizeRelativePath(inpath):
887887
"""
888888
Ensures the path is relative unless it is absolute. Prepares consistent relative paths.
889889
"""
890-
if(re.findall("^(file):///", inpath)):
890+
if(re.findall("^file:/{2,3}", inpath)):
891891
dparsed = urlparse(inpath)
892892
inpath = url2pathname(dparsed.path)
893893
inpath = RemoveWindowsPath(inpath)

0 commit comments

Comments
 (0)