Skip to content

Commit 4e5c439

Browse files
committed
Updated class defines to portability standards
1 parent d80cd4a commit 4e5c439

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

pynuodb/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Connection(object):
5959
auto_commit (setter) -- Sets the value of auto_commit on the database.
6060
"""
6161

62-
from .exception import Warning, Error, InterfaceError, DatabaseError, DataError, \
62+
from .exception import Warning, Error, InterfaceError, DatabaseError, \
6363
OperationalError, IntegrityError, InternalError, \
6464
ProgrammingError, NotSupportedError
6565

pynuodb/crypt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def fromByteString(byteStr):
103103
return result
104104

105105

106-
class RemoteGroup:
106+
class RemoteGroup(object):
107107

108108
defaultPrime = "EEAF0AB9ADB38DD69C33F80AFA8FC5E86072618775FF3C0B9EA2314C" + \
109109
"9C256576D674DF7496EA81D3383B4813D692C6E0E0D5D8E250B98BE4" + \
@@ -144,7 +144,7 @@ def getGenerator(self):
144144
def getK(self):
145145
return self.__k
146146

147-
class RemotePassword:
147+
class RemotePassword(object):
148148

149149
def __init__(self):
150150
self.__group = RemoteGroup()
@@ -258,7 +258,7 @@ def computeSessionKey(self, clientKey, verifier):
258258

259259
return md.digest()
260260

261-
class RC4Cipher:
261+
class RC4Cipher(object):
262262

263263
def __init__(self, key):
264264
if systemVersion == '3':

pynuodb/entity.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def _send_management_message(self, message, peer, process):
441441
self.__session.send(ElementTree.tostring(root))
442442

443443

444-
class Peer:
444+
class Peer(object):
445445
"""Represents a peer (or host) in the domain."""
446446

447447
def __init__(self, domain, address, agent_id, broker=False, port=48004, hostname=None, version=None):
@@ -760,7 +760,7 @@ def _get_normalized_addr(self):
760760
self.__inet_sock_addr = inet_sock_addr
761761
return self.__inet_sock_addr
762762

763-
class Database:
763+
class Database(object):
764764

765765
"""Represents a NuoDB database."""
766766

@@ -950,7 +950,7 @@ def __wait_for_status(self, status, wait_seconds):
950950

951951
return False
952952

953-
class Process:
953+
class Process(object):
954954

955955
"""Represents a NuoDB process (TE or SM)"""
956956

@@ -1138,7 +1138,7 @@ def query(self, query_type, msg_body=None):
11381138
return queryEngine(self.address, self.port, query_type, pwd, msg_body)
11391139

11401140

1141-
class Template:
1141+
class Template(object):
11421142
success_message = "Success"
11431143

11441144
@staticmethod

pynuodb/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __str__(self):
6363
return repr(self.__value)
6464

6565

66-
class Session:
66+
class Session(object):
6767

6868
__AUTH_REQ = "<Authorize TargetService=\"%s\" Type=\"SRP\"/>"
6969
__SRP_REQ = "<SRPRequest ClientKey=\"%s\" Cipher=\"RC4\" Username=\"%s\"/>" #Why is this hard coded...
@@ -313,7 +313,7 @@ def close(self):
313313
self.__session.close(force=True)
314314

315315

316-
class BaseListener:
316+
class BaseListener(object):
317317

318318
def message_received(self, root):
319319
pass

pynuodb/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def message_received(self, root):
5252
print(ElementTree.tostring(root))
5353

5454

55-
class EngineMonitor:
55+
class EngineMonitor(object):
5656

5757
def __init__(self, monitor, session):
5858
self.__monitor = monitor

0 commit comments

Comments
 (0)