summaryrefslogtreecommitdiff
path: root/Lib/tzparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tzparse.py')
-rw-r--r--Lib/tzparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tzparse.py b/Lib/tzparse.py
index fa94bd5493..27f1fa1a57 100644
--- a/Lib/tzparse.py
+++ b/Lib/tzparse.py
@@ -16,7 +16,7 @@ def tzparse(tzstr):
timezone, and 'daystart'/'hourstart' and 'dayend'/'hourend'
specify the starting and ending points for daylight saving time."""
global tzprog
- if tzprog == None:
+ if tzprog is None:
import re
tzprog = re.compile(tzpat)
match = tzprog.match(tzstr)