From bccc1419a67c06636b5d5a8d5c00612b7d843edd Mon Sep 17 00:00:00 2001 From: Valery Yundin Date: Fri, 16 Dec 2016 09:22:08 -0500 Subject: Better hide engine password Avoid putting engine password in the exception message in `MetaData.reflect` (since exception messages often appear in logs). Use the same redacted `__repr__` implementation in `TLEngine` as in its base class `Engine` Change-Id: Ic0a7baea917a9c8d87dffdd82ef566673ab08e02 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/327 --- lib/sqlalchemy/engine/threadlocal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/engine/threadlocal.py') diff --git a/lib/sqlalchemy/engine/threadlocal.py b/lib/sqlalchemy/engine/threadlocal.py index a22b59c1d..ee31764f3 100644 --- a/lib/sqlalchemy/engine/threadlocal.py +++ b/lib/sqlalchemy/engine/threadlocal.py @@ -135,4 +135,4 @@ class TLEngine(base.Engine): self._connections.trans = [] def __repr__(self): - return 'TLEngine(%s)' % str(self.url) + return 'TLEngine(%r)' % self.url -- cgit v1.2.1