Skip to content

Commit 1bfd389

Browse files
committed
upip: url_open: If --debug, dump URL being opened.
1 parent c9337de commit 1bfd389

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

upip/upip.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def expandhome(s):
104104
warn_ussl = True
105105
def url_open(url):
106106
global warn_ussl
107+
108+
if debug:
109+
print(url)
110+
107111
proto, _, host, urlpath = url.split('/', 3)
108112
try:
109113
ai = usocket.getaddrinfo(host, 443)

0 commit comments

Comments
 (0)