From: Guido van Rossum Date: Tue, 20 Mar 2001 18:36:48 +0000 (+0000) Subject: Add a deprecation warning to this module. X-Git-Tag: v2.1b2~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0926940b723ead7b4d7c6e6ac07236acf1438e9;p=thirdparty%2FPython%2Fcpython.git Add a deprecation warning to this module. Importing it typically fails anyway (no TZ variable defined), so this is no great loss. --- diff --git a/Lib/tzparse.py b/Lib/tzparse.py index 38e6af18c6c5..12468b51d3a0 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]+)$')