follow-up of r64385: rename urllib.quote in nturl2path

and remove assertions & debugger when ssl is not present
This commit is contained in:
Amaury Forgeot d'Arc 2008-06-18 22:38:24 +00:00
parent cb0d2d7198
commit c80902eac8
2 changed files with 7 additions and 10 deletions

View file

@ -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: