Add a deprecation warning to this module.

Importing it typically fails anyway (no TZ variable defined), so this
is no great loss.
This commit is contained in:
Guido van Rossum 2001-03-20 18:36:48 +00:00
parent 44f5f8fb26
commit d0926940b7
1 changed files with 5 additions and 0 deletions

View File

@ -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]+)$')