Skip to content

Commit

Permalink
change MongokitMasterSlaveConnection to MasterSlaveConnection for con…
Browse files Browse the repository at this point in the history
…sistency
  • Loading branch information
Namlook committed Jul 7, 2011
1 parent 0bbf8c0 commit 229135e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mongokit/master_slave_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
(same license as Mongokit)
"""

from pymongo.master_slave_connection import MasterSlaveConnection
from pymongo.master_slave_connection import MasterSlaveConnection as PymongoMasterSlaveConnection
from pymongo import Connection as PyMongoConnection

from mongokit.database import Database
from mongokit.connection import CallableMixin, _iterables

class MongokitMasterSlaveConnection(MasterSlaveConnection):
class MasterSlaveConnection(PymongoMasterSlaveConnection):
""" Master-Slave support for MongoKit """

def __init__(self, master, slaves=[]):
Expand Down Expand Up @@ -50,7 +50,7 @@ def __init__(self, master, slaves=[]):
slave['slave_okay'] = True
slave_connections.append(PyMongoConnection(**slave))

super(MongokitMasterSlaveConnection, self).__init__(master_connection, slave_connections)
super(MasterSlaveConnection, self).__init__(master_connection, slave_connections)

def register(self, obj_list):
decorator = None
Expand Down

0 comments on commit 229135e

Please sign in to comment.