mirror of https://github.com/python/cpython
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:
parent
44f5f8fb26
commit
d0926940b7
|
@ -3,6 +3,11 @@
|
||||||
# XXX Unfinished.
|
# XXX Unfinished.
|
||||||
# XXX Only the typical form "XXXhhYYY;ddd/hh,ddd/hh" is currently supported.
|
# 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]);'
|
tzpat = ('^([A-Z][A-Z][A-Z])([-+]?[0-9]+)([A-Z][A-Z][A-Z]);'
|
||||||
'([0-9]+)/([0-9]+),([0-9]+)/([0-9]+)$')
|
'([0-9]+)/([0-9]+),([0-9]+)/([0-9]+)$')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue