diff options
author | Guido van Rossum <guido@python.org> | 2001-03-20 18:36:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-20 18:36:48 (GMT) |
commit | d0926940b723ead7b4d7c6e6ac07236acf1438e9 (patch) | |
tree | faac904bd590f504fe80b035ba40df55a0dbb65b /Lib | |
parent | 44f5f8fb26185b211d50fd9501ba42446505a8d7 (diff) | |
download | cpython-d0926940b723ead7b4d7c6e6ac07236acf1438e9.zip cpython-d0926940b723ead7b4d7c6e6ac07236acf1438e9.tar.gz cpython-d0926940b723ead7b4d7c6e6ac07236acf1438e9.tar.bz2 |
Add a deprecation warning to this module.
Importing it typically fails anyway (no TZ variable defined), so this
is no great loss.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/tzparse.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/tzparse.py b/Lib/tzparse.py index 38e6af1..12468b5 100644 --- a/Lib/tzparse.py +++ b/Lib/tzparse.py @@ -3,6 +3,11 @@ # XXX Unfinished. # XXX Only the typical form "XXXhhYYY;ddd/hh,ddd/hh" is currently supported. +import warnings +warnings.warn( + "The tzparse module is obsolete and will disappear in the future", + DeprecationWarning) + tzpat = ('^([A-Z][A-Z][A-Z])([-+]?[0-9]+)([A-Z][A-Z][A-Z]);' '([0-9]+)/([0-9]+),([0-9]+)/([0-9]+)$') |