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.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/elementtree/adjacency_list.py b/examples/elementtree/adjacency_list.py
index 0f53e0012..0a5a922d0 100644
--- a/examples/elementtree/adjacency_list.py
+++ b/examples/elementtree/adjacency_list.py
@@ -93,6 +93,7 @@ class Document(object):
self.filename = name
self.element = element
+
# PART IV - Persistence Mapping
# Node class. a non-public class which will represent the DB-persisted
@@ -230,8 +231,6 @@ ElementTree.dump(d.element)
def find_document(path, compareto):
- j = documents
- prev_elements = None
query = session.query(Document)
attribute = "_root"
for i, match in enumerate(