1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Used "is" for comparisons with None.

This commit is contained in:
Tim Graham
2013-10-10 09:35:56 -04:00
parent ff9e8eccf8
commit cec11a3336
8 changed files with 17 additions and 16 deletions

View File

@@ -1345,7 +1345,7 @@ class DocTestRunner:
# exception message will be in group(2)
m = re.match(r'(.*)\.(\w+:.+\s)', exc_msg)
# make sure there's a match
if m != None:
if m is not None:
f_name = m.group(1)
# check to see if m.group(1) contains the module name
if f_name == exception[0].__module__: