Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor edit of initialisation logic.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bc6535b5998900191ca8cc8f9755631c4cf1b7f7 1 parent 7a84ad9
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/mail.py
View
2  django/core/mail.py
@@ -72,7 +72,7 @@ class SMTPConnection(object):
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
Please sign in to comment.
Something went wrong with that request. Please try again.