Changeset 7349
- Timestamp:
- 03/21/08 16:39:50 (4 months ago)
- Files:
-
- django/trunk/django/core/mail.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/mail.py
r7348 r7349 39 39 DNS_NAME = CachedDnsName() 40 40 41 # Copied from Python standard library and modified to used the cached hostname 42 # for performance. 41 # Copied from Python standard library, with the following modifications: 42 # * Used cached hostname for performance. 43 # * Added try/except to support lack of getpid() in Jython (#5496). 43 44 def make_msgid(idstring=None): 44 45 """Returns a string suitable for RFC 2822 compliant Message-ID, e.g: … … 54 55 pid = os.getpid() 55 56 except AttributeError: 56 # No tgetpid() in Jython, for example.57 # No getpid() in Jython, for example. 57 58 pid = 1 58 59 randint = random.randrange(100000)
