Changeset 88

Show
Ignore:
Timestamp:
03/10/08 14:02:00 (8 months ago)
Author:
amcgregor
Message:

Added docstring to Address class.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/turbomail/util.py

    r84 r88  
    11# encoding: utf-8 
    22 
    3 """MIME-encoded electronic mail message classes.""" 
     3"""TurboMail utility functions and support classes.""" 
    44 
    55__version__ = "$Revision$" 
     
    1515 
    1616class Address(object): 
     17    """Validated electonic mail address class. 
     18     
     19    This class knows how to validate and format e-mail addresses.  It 
     20    uses Python's built-in `parseaddr` and `formataddr` helper 
     21    functions and helps guarentee a uniform base for all e-mail 
     22    address operations. 
     23     
     24    The AddressList unit tests provide comprehensive testing of this 
     25    class as well.""" 
     26     
    1727    validator = re.compile(r'^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(\+([0-9a-zA-Z])+)?@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$') 
    1828