Skip to content

Commit c217dac

Browse files
[de] inheriting from object
1 parent 751ff13 commit c217dac

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎src/backup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
clean_on_error
2121

2222

23-
class NodeBackup(object):
23+
class NodeBackup:
2424
"""
2525
Smart object responsible for backups
2626
"""

‎src/config.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
logging.basicConfig(level=log_level, format=log_format)
1818

1919

20-
class GlobalConfig(object):
20+
class GlobalConfig:
2121
"""
2222
Global configuration object which allows user to override default settings.
2323
"""

‎src/connection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
OperationalError = pglib.OperationalError
2626

2727

28-
class NodeConnection(object):
28+
class NodeConnection:
2929
"""
3030
Transaction wrapper returned by Node
3131
"""

‎src/node.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
assert TimeoutException == QueryTimeoutException
101101

102102

103-
class ProcessProxy(object):
103+
class ProcessProxy:
104104
"""
105105
Wrapper for psutil.Process
106106
@@ -144,7 +144,7 @@ def ptype(self) -> ProcessType:
144144
return self._ptype
145145

146146

147-
class PostgresNode(object):
147+
class PostgresNode:
148148
# a max number of node start attempts
149149
_C_MAX_START_ATEMPTS = 5
150150

‎src/pubsub.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from .utils import options_string
4949

5050

51-
class Publication(object):
51+
class Publication:
5252
def __init__(self, name, node, tables=None, dbname=None, username=None):
5353
"""
5454
Constructor. Use :meth:`.PostgresNode.publish()` instead of direct
@@ -132,7 +132,7 @@ def add_tables(self, tables, dbname=None, username=None):
132132
)
133133

134134

135-
class Subscription(object):
135+
class Subscription:
136136
def __init__(
137137
self,
138138
node,

0 commit comments

Comments
 (0)