From: Mike Bayer Date: Sat, 22 Nov 2008 16:09:20 +0000 (+0000) Subject: - Fixed the import weirdness in sqlalchemy.sql X-Git-Tag: rel_0_5_0~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31450d75e567cfd406826c6880d4ccd347e2a645;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Fixed the import weirdness in sqlalchemy.sql to not export __names__ [ticket:1215]. --- diff --git a/CHANGES b/CHANGES index 8899d280ae..c2b437d5d1 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,9 @@ CHANGES properly converted to IS NOT NULL based on not_(). - sql + - Fixed the import weirdness in sqlalchemy.sql + to not export __names__ [ticket:1215]. + - Added NotImplementedError for params() method on Insert/Update/Delete constructs. These items currently don't support this functionality, which diff --git a/lib/sqlalchemy/sql/__init__.py b/lib/sqlalchemy/sql/__init__.py index 90e140936f..0b347ca386 100644 --- a/lib/sqlalchemy/sql/__init__.py +++ b/lib/sqlalchemy/sql/__init__.py @@ -53,5 +53,5 @@ from sqlalchemy.sql.expression import ( from sqlalchemy.sql.visitors import ClauseVisitor - -__all__ = sorted(locals().keys()) +__tmp = locals().keys() +__all__ = sorted([i for i in __tmp if not i.startswith('__')])