[Python-checkins] CVS: python/dist/src/Lib tzparse.py,1.9,1.10
Guido van Rossum
gvanrossum@users.sourceforge.net
Tue, 20 Mar 2001 10:36:51 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv8038
Modified Files:
tzparse.py
Log Message:
Add a deprecation warning to this module.
Importing it typically fails anyway (no TZ variable defined), so this
is no great loss.
Index: tzparse.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tzparse.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** tzparse.py 2001/01/15 03:26:36 1.9
--- tzparse.py 2001/03/20 18:36:48 1.10
***************
*** 4,7 ****
--- 4,12 ----
# 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]+)$')