mirror of
https://github.com/python/cpython.git
synced 2025-01-19 15:05:15 +08:00
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 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]+)$')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user