]> granicus.if.org Git - python/commitdiff
Add a deprecation warning to this module.
authorGuido van Rossum <guido@python.org>
Tue, 20 Mar 2001 18:36:48 +0000 (18:36 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 20 Mar 2001 18:36:48 +0000 (18:36 +0000)
Importing it typically fails anyway (no TZ variable defined), so this
is no great loss.

Lib/tzparse.py

index 38e6af18c6c52ed854af6ee8dff5f5b5e33fec88..12468b51d3a0d56f29be57dff1c89da9b4127727 100644 (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]+)$')