File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -240,24 +240,19 @@ def pop(name, default=None):
240
240
warnings .warn ("slave_okay has been deprecated. "
241
241
"Please use read_preference instead." )
242
242
243
- if replicaset :
244
- connection_class = MongoReplicaSetClient
245
- else :
246
- connection_class = MongoClient
243
+
244
+
247
245
248
246
conn_options = dict (
249
247
host = host ,
250
248
port = int (port ),
251
- max_pool_size = None ,
252
249
document_class = dict ,
253
- tz_aware = False ,
254
- _connect = True ,
255
- auto_start_request = True
250
+ tz_aware = False
256
251
)
257
252
conn_options .update (options )
258
253
259
254
try :
260
- self .connection = connection_class (** conn_options )
255
+ self .connection = MongoClient (** conn_options )
261
256
self .database = self .connection [db_name ]
262
257
except TypeError :
263
258
exc_info = sys .exc_info ()
You can’t perform that action at this time.
0 commit comments