[Zope3-checkins] CVS: Zope3/lib/python/Zope/TAL - XMLParser.py:1.11
Tim Peters
tim.one@comcast.net
Thu, 19 Dec 2002 12:25:50 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/TAL
In directory cvs.zope.org:/tmp/cvs-serv1037/lib/python/Zope/TAL
Modified Files:
XMLParser.py
Log Message:
Start using the std logging module!
=== Zope3/lib/python/Zope/TAL/XMLParser.py 1.10 => 1.11 ===
--- Zope3/lib/python/Zope/TAL/XMLParser.py:1.10 Thu Aug 8 11:27:30 2002
+++ Zope3/lib/python/Zope/TAL/XMLParser.py Thu Dec 19 12:25:50 2002
@@ -2,20 +2,20 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""
Generic expat-based XML parser base class.
"""
-import zLOG
+import logging
class XMLParser:
@@ -50,8 +50,7 @@
try:
self.parser.ordered_attributes = self.ordered_attributes
except AttributeError:
- zLOG.LOG("TAL.XMLParser", zLOG.INFO,
- "Can't set ordered_attributes")
+ logging.warn("TAL.XMLParser: Can't set ordered_attributes")
self.ordered_attributes = 0
for name in self.handler_names:
method = getattr(self, name, None)
@@ -59,8 +58,8 @@
try:
setattr(p, name, method)
except AttributeError:
- zLOG.LOG("TAL.XMLParser", zLOG.PROBLEM,
- "Can't set expat handler %s" % name)
+ logging.error("TAL.XMLParser: Can't set "
+ "expat handler %s" % name)
def createParser(self, encoding=None):
global XMLParseError