summaryrefslogtreecommitdiff
path: root/examples/elementtree/adjacency_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/elementtree/adjacency_list.py')
-rw-r--r--examples/elementtree/adjacency_list.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/elementtree/adjacency_list.py b/examples/elementtree/adjacency_list.py
index 43961fb41..9d2c78157 100644
--- a/examples/elementtree/adjacency_list.py
+++ b/examples/elementtree/adjacency_list.py
@@ -89,7 +89,7 @@ mapper_registry.metadata.create_all(e)
# and the ElementTree root element.
-class Document(object):
+class Document:
def __init__(self, name, element):
self.filename = name
self.element = element
@@ -103,7 +103,7 @@ class Document(object):
# may be backed by native implementations. so here we construct an adapter.
-class _Node(object):
+class _Node:
pass
@@ -111,7 +111,7 @@ class _Node(object):
# stored for a particular Node.
-class _Attribute(object):
+class _Attribute:
def __init__(self, name, value):
self.name = name
self.value = value
@@ -144,7 +144,7 @@ mapper(_Attribute, attributes)
# collection.
-class ElementTreeMarshal(object):
+class ElementTreeMarshal:
def __get__(self, document, owner):
if document is None:
return self