Skip to content

Commit

Permalink
Revert "Do not replace \ with / in URLs on Windows"
Browse files Browse the repository at this point in the history
This reverts commit 2c7bc28.
  • Loading branch information
kalefranz committed Jan 12, 2017
1 parent 648d7fc commit 694d29f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conda/common/url.py
Expand Up @@ -51,6 +51,8 @@ def path_to_url(path):

@memoize
def urlparse(url):
if on_win and url.startswith('file:'):
url.replace('\\', '/')
return parse_url(url)


Expand Down
2 changes: 2 additions & 0 deletions conda/models/channel.py
Expand Up @@ -212,6 +212,8 @@ def from_value(value):
return Channel(name=UNKNOWN_CHANNEL)
value = ensure_text_type(value)
if has_scheme(value):
if value.startswith('file:') and on_win:
value = value.replace('\\', '/')
return Channel.from_url(value)
elif is_path(value):
return Channel.from_url(path_to_url(value))
Expand Down

0 comments on commit 694d29f

Please sign in to comment.