[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.27
Fred L. Drake, Jr.
fred@zope.com
Wed, 16 Apr 2003 16:25:31 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv23608
Modified Files:
widget.py
Log Message:
Avoid using apply(); it isn't needed and generates
PendingDeprecationWarnings in Python 2.3.
=== Zope3/src/zope/app/browser/form/widget.py 1.26 => 1.27 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.26 Fri Apr 4 10:39:28 2003
+++ Zope3/src/zope/app/browser/form/widget.py Wed Apr 16 16:25:30 2003
@@ -747,6 +747,6 @@
if 'contents' in kw:
contents = kw['contents']
del kw['contents']
- return "%s>%s</%s>" % (apply(renderTag, (tag,), kw), contents, tag)
+ return "%s>%s</%s>" % (renderTag(tag, **kw), contents, tag)
else:
- return apply(renderTag, (tag,), kw) + " />"
+ return renderTag(tag, **kw) + " />"