mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Patch #2167 from calvin: Remove unused imports
This commit is contained in:
parent
19aff0c90a
commit
c5f05e45cf
203 changed files with 77 additions and 243 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import unittest
|
||||
from test import test_support
|
||||
|
||||
import os, socket
|
||||
import os
|
||||
import StringIO
|
||||
|
||||
import urllib2
|
||||
|
|
@ -589,7 +589,7 @@ class HandlerTests(unittest.TestCase):
|
|||
self.assertEqual(int(headers["Content-length"]), len(data))
|
||||
|
||||
def test_file(self):
|
||||
import time, rfc822, socket
|
||||
import rfc822, socket
|
||||
h = urllib2.FileHandler()
|
||||
o = h.parent = MockOpener()
|
||||
|
||||
|
|
@ -993,7 +993,7 @@ class HandlerTests(unittest.TestCase):
|
|||
def _test_basic_auth(self, opener, auth_handler, auth_header,
|
||||
realm, http_handler, password_manager,
|
||||
request_url, protected_url):
|
||||
import base64, httplib
|
||||
import base64
|
||||
user, password = "wile", "coyote"
|
||||
|
||||
# .add_password() fed through to password manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue