Mercurial > cpython-lru_cache-weakref
diff Lib/tzparse.py @ 1746:1940892d2fe3 legacy-trunk
Merge alpha100 branch back to main trunk
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 01 Aug 1994 11:34:53 +0000 |
| parents | 2f3f293ef5f1 |
| children | 24da035ceb6e |
line wrap: on
line diff
--- a/Lib/tzparse.py Mon Aug 01 11:18:30 1994 +0000 +++ b/Lib/tzparse.py Mon Aug 01 11:34:53 1994 +0000 @@ -12,7 +12,7 @@ if tzprog == None: import regex tzprog = regex.compile(tzpat) - if not tzprog.match(tzstr): + if tzprog.match(tzstr) < 0: raise ValueError, 'not the TZ syntax I understand' regs = tzprog.regs subs = [] @@ -78,5 +78,3 @@ x = localtime(t) tm = x[:-1] + (0,) print 'd =', d, 't =', t, '=', asctime(tm), x[-1] - -test()
