mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
follow-up of r64385: rename urllib.quote in nturl2path
and remove assertions & debugger when ssl is not present
This commit is contained in:
parent
cb0d2d7198
commit
c80902eac8
2 changed files with 7 additions and 10 deletions
|
@ -105,7 +105,6 @@ except:
|
|||
_have_ssl = False
|
||||
else:
|
||||
_have_ssl = True
|
||||
assert _have_ssl
|
||||
|
||||
# used in User-Agent header sent
|
||||
__version__ = sys.version[:3]
|
||||
|
@ -417,8 +416,6 @@ def build_opener(*handlers):
|
|||
FTPHandler, FileHandler, HTTPErrorProcessor]
|
||||
if hasattr(http.client, "HTTPSConnection"):
|
||||
default_classes.append(HTTPSHandler)
|
||||
else:
|
||||
import pdb; pdb.set_trace()
|
||||
skip = set()
|
||||
for klass in default_classes:
|
||||
for check in handlers:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue