diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-23 19:16:01 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-23 19:16:01 +0000 |
commit | a75af96bcc9cea78421fc2b7da5a23c7be8077cd (patch) | |
tree | 82f43ed298cb1ae164dfd3bcf263a2d7111f4255 /lib/sqlalchemy/sql/compiler.py | |
parent | 88aad2a374074e2b5992e9e9e110967707da0bc1 (diff) | |
download | sqlalchemy-a75af96bcc9cea78421fc2b7da5a23c7be8077cd.tar.gz |
use new anonymize style for the public _anonymize as well
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
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(' ') |