From d0926940b723ead7b4d7c6e6ac07236acf1438e9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 20 Mar 2001 18:36:48 +0000 Subject: [PATCH] Add a deprecation warning to this module. Importing it typically fails anyway (no TZ variable defined), so this is no great loss. --- Lib/tzparse.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/tzparse.py b/Lib/tzparse.py index 38e6af18c6..12468b51d3 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]+)$') -- 2.50.0