[Zope3-checkins] CVS: Zope/lib/python/ZConfig - __init__.py:1.8
Chris McDonough
chrism@zope.com
Sat, 12 Apr 2003 22:25:23 -0400
Update of /cvs-repository/Zope/lib/python/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv7172/lib/python/ZConfig
Modified Files:
__init__.py
Log Message:
Dont barf on nonnumeric linenos (position may be string if a command-line option is used).
=== Zope/lib/python/ZConfig/__init__.py 1.7 => 1.8 ===
--- Zope/lib/python/ZConfig/__init__.py:1.7 Mon Jan 13 12:31:42 2003
+++ Zope/lib/python/ZConfig/__init__.py Sat Apr 12 22:25:22 2003
@@ -103,9 +103,9 @@
self.lineno, self.colno, self.url = position
def __str__(self):
- s = "%s (line %d" % (self.message, self.lineno)
+ s = "%s (line %s" % (self.message, self.lineno)
if self.colno is not None:
- s += ", %d" % self.colno
+ s += ", %s" % self.colno
if self.url:
s += ", in %s)" % self.url
else: