Stop the loop variable used to create __all__ leaking in the module.

This commit is contained in:
Daniele Varrazzo 2010-02-08 20:13:10 +00:00 committed by Federico Di Gregorio
parent 0089201ba2
commit 0dbe068df4
4 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2010-02-12 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* Stop the loop variable used to create __all__ leaking in the module.
2010-02-10 Federico Di Gregorio <fog@initd.org>
* lib/extensions.py: Binary was not imported from _psycopg; now it is

View File

@ -83,4 +83,5 @@ from _psycopg import __version__
import psycopg2.extensions as _ext
_ext.register_adapter(tuple, _ext.SQL_IN)
__all__ = [ k for k in locals().keys() if not k.startswith('_') ]
__all__ = filter(lambda k: not k.startswith('_'), locals().keys())

View File

@ -111,4 +111,4 @@ class SQL_IN(object):
__str__ = getquoted
__all__ = [ k for k in locals().keys() if not k.startswith('_') ]
__all__ = filter(lambda k: not k.startswith('_'), locals().keys())

View File

@ -471,4 +471,4 @@ def register_tstz_w_secs(oids=None, conn_or_curs=None):
return _ext.TSTZ_W_SECS
__all__ = [ k for k in locals().keys() if not k.startswith('_') ]
__all__ = filter(lambda k: not k.startswith('_'), locals().keys())