From 2503461e8b5e1d184e58e3caaa41ca941b95b91a Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 25 Feb 2011 18:32:31 -0500 Subject: Two more unused functions removed. Utils.py, your days are numbered. --- src/mailman/Utils.py | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src') diff --git a/src/mailman/Utils.py b/src/mailman/Utils.py index 37dcbe5e6..d952a113a 100644 --- a/src/mailman/Utils.py +++ b/src/mailman/Utils.py @@ -158,26 +158,6 @@ def nntpsplit(s): return s, 119 - -# Just changing these two functions should be enough to control the way -# that email address obscuring is handled. -def ObscureEmail(addr, for_text=False): - """Make email address unrecognizable to web spiders, but invertable. - - When for_text option is set (not default), make a sentence fragment - instead of a token.""" - if for_text: - return addr.replace('@', ' at ') - else: - return addr.replace('@', '--at--') - -def UnobscureEmail(addr): - """Invert ObscureEmail() conversion.""" - # Contrived to act as an identity operation on already-unobscured - # emails, so routines expecting obscured ones will accept both. - return addr.replace('--at--', '@') - - class OuterExit(Exception): pass -- cgit v1.3.1