summaryrefslogtreecommitdiff
path: root/examples/elementtree/pickle.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/elementtree/pickle.py')
-rw-r--r--examples/elementtree/pickle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/elementtree/pickle.py b/examples/elementtree/pickle.py
index 443ca85c3..e7cd86984 100644
--- a/examples/elementtree/pickle.py
+++ b/examples/elementtree/pickle.py
@@ -22,8 +22,8 @@ logging.basicConfig()
from elementtree import ElementTree
-meta = MetaData()
-meta.engine = 'sqlite://'
+engine = create_engine('sqlite://')
+meta = MetaData(engine)
# stores a top level record of an XML document.
# the "element" column will store the ElementTree document as a BLOB.