summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-20 18:36:48 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-20 18:36:48 (GMT)
commitd0926940b723ead7b4d7c6e6ac07236acf1438e9 (patch)
treefaac904bd590f504fe80b035ba40df55a0dbb65b
parent44f5f8fb26185b211d50fd9501ba42446505a8d7 (diff)
downloadcpython-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.
-rw-r--r--Lib/tzparse.py5
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]+)$')