summaryrefslogtreecommitdiff
path: root/examples/custom_attributes
diff options
context:
space:
mode:
Diffstat (limited to 'examples/custom_attributes')
-rw-r--r--examples/custom_attributes/custom_management.py2
-rw-r--r--examples/custom_attributes/listen_for_events.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_attributes/custom_management.py b/examples/custom_attributes/custom_management.py
index 6cddfe7bd..5ee5a45f8 100644
--- a/examples/custom_attributes/custom_management.py
+++ b/examples/custom_attributes/custom_management.py
@@ -43,7 +43,7 @@ class MyClassState(InstrumentationManager):
return find
-class MyClass(object):
+class MyClass:
__sa_instrumentation_manager__ = MyClassState
def __init__(self, **kwargs):
diff --git a/examples/custom_attributes/listen_for_events.py b/examples/custom_attributes/listen_for_events.py
index e3ef4cbea..b2d2b690b 100644
--- a/examples/custom_attributes/listen_for_events.py
+++ b/examples/custom_attributes/listen_for_events.py
@@ -27,7 +27,7 @@ if __name__ == "__main__":
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
- class Base(object):
+ class Base:
def receive_change_event(self, verb, key, value, oldvalue):
s = "Value '%s' %s on attribute '%s', " % (value, verb, key)
if oldvalue: