Skip to content
Myr

update urllib unquote import

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 972becf · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:src/click/_termui_impl.py+4 added-3 removed
547 unmodified lines
548549def open_url(url, wait=False, locate=False):550 import subprocess551552 def _unquote_file(url):553 import urllib552 def _unquote_file(url: str) -> str:553 from urllib.parse import unquote554555 if url.startswith("file://"):556 url = urllib.unquote(url[7:])556 url = unquote(url[7:])557558 return url559560 if sys.platform == "darwin":561 args = ["open"]
140 unmodified lines