From 6010afb28f95c7050ca48ddd2e6f65ca6cbae5a1 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Tue, 31 Mar 2009 22:31:08 +0000 Subject: Lots of fixes to the code examples to specify imports explicitly. Explicit imports make it easier for users to understand the examples. Additionally a lot of the examples were fixed to work with the changes in the 0.5.x code base. One small correction to the Case expression. Thanks a bunch to Adam Lowry! Fixes #717. --- examples/nested_sets/nested_sets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/nested_sets/nested_sets.py') diff --git a/examples/nested_sets/nested_sets.py b/examples/nested_sets/nested_sets.py index e83a263e9..fbb481759 100644 --- a/examples/nested_sets/nested_sets.py +++ b/examples/nested_sets/nested_sets.py @@ -4,9 +4,9 @@ http://www.intelligententerprise.com/001020/celko.jhtml """ -from sqlalchemy import * -from sqlalchemy.orm import * -from sqlalchemy.orm import attributes +from sqlalchemy import (create_engine, Column, Integer, String, select, case, + func) +from sqlalchemy.orm import sessionmaker, MapperExtension, aliased from sqlalchemy.ext.declarative import declarative_base engine = create_engine('sqlite://', echo=True) -- cgit v1.2.1