From a75af96bcc9cea78421fc2b7da5a23c7be8077cd Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 23 Dec 2008 19:16:01 +0000 Subject: use new anonymize style for the public _anonymize as well --- lib/sqlalchemy/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/compiler.py') diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index c6eac52a9..5b62e1db6 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(' ') -- cgit v1.2.1