Author: mtredinnick
Date: 2007-05-03 08:53:42 -0500 (Thu, 03 May 2007)
New Revision: 5145

Modified:
   django/trunk/django/core/mail.py
Log:
Minor edit of initialisation logic.


Modified: django/trunk/django/core/mail.py
===================================================================
--- django/trunk/django/core/mail.py    2007-05-03 13:35:02 UTC (rev 5144)
+++ django/trunk/django/core/mail.py    2007-05-03 13:53:42 UTC (rev 5145)
@@ -72,7 +72,7 @@
     def __init__(self, host=None, port=None, username=None, password=None,
             use_tls=None, fail_silently=False):
         self.host = host or settings.EMAIL_HOST
-        self.port = (port is not None) and port or settings.EMAIL_PORT
+        self.port = port or settings.EMAIL_PORT
         self.username = username or settings.EMAIL_HOST_USER
         self.password = password or settings.EMAIL_HOST_PASSWORD
         self.use_tls = (use_tls is not None) and use_tls or 
settings.EMAIL_USE_TLS


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to