return False
# grammar check
- retval= _validate(real_localpart)
+ retval = _validate(real_localpart)
return retval
if not stream.end_of_stream():
return False
- return True
\ No newline at end of file
+ return True
def plugin_for_esp(mail_exchanger):
'''
- Checks if custom grammar exists for a particular mail exchanger. If
+ Checks if custom grammar exists for a particular mail exchanger. If
a grammar is found, the plugin to validate an address for that particular
email service provider is returned, otherwise None is returned.
return self.m.keys()
def items(self):
- return [(key,val) for (key, val) in self.iteritems()]
+ return [(key, val) for (key, val) in self.iteritems()]
def iteritems(self):
for key, val in self.m.items():
"""
m = reverseContinuation.match(reverse(key))
key = reverse(m.group('key'))
- part= reverse(m.group('part')) if m.group('part') else None
+ part = reverse(m.group('part')) if m.group('part') else None
encoded = m.group('encoded')
return (key, part, encoded)