Skip to content

Commit

Permalink
#3052: email.py, replace '==' with 'is'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Oct 15, 2017
1 parent 46ab6ba commit 60fc397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brain/validator/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def isValidEmail(email):
regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$'
match = re.match(regex, email)

if match == None:
if match is None:
return False
return True

0 comments on commit 60fc397

Please sign in to comment.