Unused imports.
This commit is contained in:
parent
ccb79b1cda
commit
118b47e6e3
@ -16,8 +16,8 @@
|
||||
|
||||
import threading
|
||||
import time
|
||||
from pymongo import common
|
||||
|
||||
from pymongo import common
|
||||
from pymongo.cluster_description import (updated_cluster_description,
|
||||
CLUSTER_TYPE,
|
||||
ClusterDescription)
|
||||
|
||||
@ -15,14 +15,12 @@
|
||||
|
||||
"""Functions and classes common to multiple pymongo modules."""
|
||||
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
from pymongo.auth import MECHANISMS
|
||||
from pymongo.errors import ConfigurationError
|
||||
from pymongo.read_preferences import (make_read_preference,
|
||||
read_pref_mode_from_name,
|
||||
ReadPreference,
|
||||
ServerMode)
|
||||
from pymongo.ssl_support import validate_cert_reqs
|
||||
from pymongo.write_concern import WriteConcern
|
||||
|
||||
@ -24,7 +24,7 @@ from bson.py3compat import (iteritems,
|
||||
integer_types,
|
||||
string_type)
|
||||
from bson.son import SON
|
||||
from pymongo import helpers, message, read_preferences
|
||||
from pymongo import helpers, message
|
||||
from pymongo.read_preferences import ReadPreference, SECONDARY_OK_COMMANDS
|
||||
from pymongo.errors import (AutoReconnect,
|
||||
CursorNotFound,
|
||||
|
||||
@ -35,7 +35,6 @@ access:
|
||||
import datetime
|
||||
import random
|
||||
import socket
|
||||
import struct
|
||||
import threading
|
||||
import time
|
||||
import warnings
|
||||
|
||||
@ -34,7 +34,6 @@ attribute-style access:
|
||||
import atexit
|
||||
import datetime
|
||||
import socket
|
||||
import struct
|
||||
import threading
|
||||
import time
|
||||
import weakref
|
||||
@ -63,7 +62,7 @@ from pymongo.member import Member
|
||||
from pymongo.read_preferences import (
|
||||
ReadPreference, select_member, MovingAverage)
|
||||
from pymongo.ssl_support import get_ssl_context
|
||||
from pymongo.thread_util import DummyLock
|
||||
|
||||
|
||||
EMPTY = b""
|
||||
MAX_RETRY = 3
|
||||
|
||||
@ -16,14 +16,14 @@ import os
|
||||
import select
|
||||
import socket
|
||||
import struct
|
||||
import sys
|
||||
import time
|
||||
import threading
|
||||
import weakref
|
||||
|
||||
from bson import EMPTY
|
||||
from pymongo import thread_util
|
||||
from pymongo.errors import ConnectionFailure, ConfigurationError
|
||||
from pymongo.errors import ConnectionFailure
|
||||
|
||||
|
||||
try:
|
||||
from ssl import match_hostname, CertificateError
|
||||
|
||||
@ -19,7 +19,6 @@
|
||||
# a replica set. Thus each method asserts everything we want to assert for a
|
||||
# given replica-set configuration.
|
||||
|
||||
import os
|
||||
import time
|
||||
|
||||
import ha_tools
|
||||
|
||||
@ -27,7 +27,7 @@ import bson
|
||||
from bson.binary import *
|
||||
from bson.py3compat import u
|
||||
from bson.son import SON
|
||||
from test import client_context, unittest, SkipTest
|
||||
from test import client_context, unittest
|
||||
from pymongo.mongo_client import MongoClient
|
||||
|
||||
|
||||
|
||||
@ -56,8 +56,7 @@ from test.utils import (assertRaisesExactly,
|
||||
lazy_client_trial,
|
||||
NTHREADS,
|
||||
get_pool,
|
||||
one,
|
||||
server_started_with_auth)
|
||||
one)
|
||||
|
||||
|
||||
class TestClient(unittest.TestCase, TestRequestMixin):
|
||||
|
||||
@ -36,7 +36,7 @@ from pymongo.errors import (InvalidOperation,
|
||||
OperationFailure,
|
||||
ExecutionTimeout)
|
||||
from test import client_context, SkipTest, unittest, host, port, IntegrationTest
|
||||
from test.utils import is_mongos, get_command_line, server_started_with_auth
|
||||
from test.utils import server_started_with_auth
|
||||
|
||||
if PY3:
|
||||
long = int
|
||||
|
||||
@ -15,7 +15,6 @@
|
||||
"""Test the database module."""
|
||||
|
||||
import datetime
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
Loading…
Reference in New Issue
Block a user