diff options
Diffstat (limited to 'examples/elementtree/optimized_al.py')
-rw-r--r-- | examples/elementtree/optimized_al.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/elementtree/optimized_al.py b/examples/elementtree/optimized_al.py index c68720aaa..1c16e1c8a 100644 --- a/examples/elementtree/optimized_al.py +++ b/examples/elementtree/optimized_al.py @@ -80,7 +80,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 @@ -94,7 +94,7 @@ class Document(object): # may be backed by native implementations. so here we construct an adapter. -class _Node(object): +class _Node: pass @@ -102,7 +102,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 @@ -147,7 +147,7 @@ mapper(_Attribute, attributes) # collection. -class ElementTreeMarshal(object): +class ElementTreeMarshal: def __get__(self, document, owner): if document is None: return self |