]> granicus.if.org Git - python/commitdiff
remove extra ssl imports (closes #23053)
authorBenjamin Peterson <benjamin@python.org>
Mon, 15 Dec 2014 15:04:13 +0000 (10:04 -0500)
committerBenjamin Peterson <benjamin@python.org>
Mon, 15 Dec 2014 15:04:13 +0000 (10:04 -0500)
Patch from Jan Matejek.

Lib/test/test_urllib2_localnet.py

index a24a077b2c9beb0a8dcd19678509968c1c7c9af7..bb82b26db1308ea00f30f174f1c760dd74ae54ea 100644 (file)
@@ -5,7 +5,6 @@ import urllib2
 import BaseHTTPServer
 import unittest
 import hashlib
-import ssl
 
 from test import test_support
 
@@ -557,7 +556,6 @@ class TestUrlopen(BaseTestCase):
 
     def test_https_with_cafile(self):
         handler = self.start_https_server(certfile=CERT_localhost)
-        import ssl
         # Good cert
         data = self.urlopen("https://localhost:%s/bizarre" % handler.port,
                             cafile=CERT_localhost)