Skip to content

Commit 4e7c501

Browse files
authored
Add files via upload
1 parent fdabadc commit 4e7c501

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyarchivefile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ def RemoveWindowsPath(dpath):
856856
"""
857857
if not dpath:
858858
return ""
859-
if(re.findall("^(file):///", dpath)):
859+
if(re.findall("^file:/{2,3}", dpath)):
860860
dparsed = urlparse(dpath)
861861
dpath = url2pathname(dparsed.path)
862862
# Accept bytes and decode safely
@@ -874,7 +874,7 @@ def NormalizeRelativePath(inpath):
874874
"""
875875
Ensures the path is relative unless it is absolute. Prepares consistent relative paths.
876876
"""
877-
if(re.findall("^(file):///", inpath)):
877+
if(re.findall("^file:/{2,3}", inpath)):
878878
dparsed = urlparse(inpath)
879879
inpath = url2pathname(dparsed.path)
880880
inpath = RemoveWindowsPath(inpath)

0 commit comments

Comments
 (0)