From 31450d75e567cfd406826c6880d4ccd347e2a645 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 22 Nov 2008 16:09:20 +0000 Subject: [PATCH] - Fixed the import weirdness in sqlalchemy.sql to not export __names__ [ticket:1215]. --- CHANGES | 3 +++ lib/sqlalchemy/sql/__init__.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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('__')]) -- 2.47.3