Skip to content

Commit 7ef4988

Browse files
committed
Resolved merge conflicts with main and removed Windows specific implementations
Signed-off-by: Doug Halley <[email protected]>
1 parent e7bc171 commit 7ef4988

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/py-opentimelineio/opentimelineio/url_utils.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ def filepath_from_url(urlstr):
6868
if PureWindowsPath(parsed_result.netloc).drive:
6969
filepath = PurePath(parsed_result.netloc + decoded_parsed_path)
7070

71-
# Check if the specified index has a specified `drive`, if so then do nothing
72-
elif filepath.drive:
73-
filepath = filepath
74-
7571
# Check if the specified index is a windows drive, then offset the path
7672
elif PureWindowsPath(filepath.parts[1]).drive:
7773
# Remove leading "/" if/when `request.url2pathname` yields "/S:/path/file.ext"
@@ -86,9 +82,4 @@ def filepath_from_url(urlstr):
8682
# Convert "\" to "/" if needed
8783
path = filepath.as_posix()
8884

89-
# Since the previous code handles Windows drive letter, we can assume that any path
90-
# starting with a "/" is a UNC path if executed is run on Windows.
91-
if path.startswith('/') and sys.platform == 'win32':
92-
path = '/' + path
93-
9485
return path

0 commit comments

Comments
 (0)