From: Mike Bayer Date: Tue, 23 Dec 2008 19:16:01 +0000 (+0000) Subject: use new anonymize style for the public _anonymize as well X-Git-Tag: rel_0_5_0~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a75af96bcc9cea78421fc2b7da5a23c7be8077cd;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git use new anonymize style for the public _anonymize as well --- diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index c6eac52a98..5b62e1db6d 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -424,7 +424,7 @@ class DefaultCompiler(engine.Compiled): return truncname def _anonymize(self, name): - return name % self.anon_map + return self._trunc_re.sub(lambda m: self.anon_map[m.group(1)], name) def _process_anon(self, key): (ident, derived) = key.split(' ')