From cec11a3336c730e6dc2f1966fee749cc830e97c0 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 10 Oct 2013 09:35:56 -0400 Subject: Used "is" for comparisons with None. --- django/test/_doctest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/test') diff --git a/django/test/_doctest.py b/django/test/_doctest.py index 3f6962dc17..4f4837f3c6 100644 --- a/django/test/_doctest.py +++ b/django/test/_doctest.py @@ -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__: -- cgit v1.3