Mercurial > cpython-lru_cache-weakref
diff Lib/tzparse.py @ 15543:785155e2cfca legacy-trunk
Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 12 Dec 2000 23:20:45 +0000 |
| parents | 6f4146846337 |
| children | 3dd217fbdd59 |
line wrap: on
line diff
--- a/Lib/tzparse.py Tue Dec 12 23:16:51 2000 +0000 +++ b/Lib/tzparse.py Tue Dec 12 23:20:45 2000 +0000 @@ -16,7 +16,7 @@ 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)
