mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Don't leak private variables into the psycopg2.extensions interface
This commit is contained in:
parent
8fb08efae7
commit
cd6e2cd8f2
|
@ -158,5 +158,6 @@ for k, v in encodings.items():
|
||||||
k = k.replace('_', '').replace('-', '').upper()
|
k = k.replace('_', '').replace('-', '').upper()
|
||||||
encodings[k] = v
|
encodings[k] = v
|
||||||
|
|
||||||
|
del k, v
|
||||||
|
|
||||||
__all__ = filter(lambda k: not k.startswith('_'), locals().keys())
|
__all__ = filter(lambda k: not k.startswith('_'), locals().keys())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user