[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates/tests - testTALES.py:1.8
Fred L. Drake, Jr.
fred@zope.com
Thu, 27 Feb 2003 11:18:42 -0500
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/tests
In directory cvs.zope.org:/tmp/cvs-serv24053/Products/PageTemplates/tests
Modified Files:
testTALES.py
Log Message:
Get rid of apply(); extended call syntax is not news anymore, and apply()
will generate a PendingDeprecationWarning in Python 2.3.
=== Zope/lib/python/Products/PageTemplates/tests/testTALES.py 1.7 => 1.8 ===
--- Zope/lib/python/Products/PageTemplates/tests/testTALES.py:1.7 Mon Jan 27 13:53:46 2003
+++ Zope/lib/python/Products/PageTemplates/tests/testTALES.py Thu Feb 27 11:18:41 2003
@@ -88,7 +88,7 @@
e = TALES.Engine()
e.registerType('simple', TALES.SimpleExpr)
e.registerType('unicode', DummyUnicodeExpr)
- return apply(e.getContext, (), kws)
+ return e.getContext(**kws)
def testContext0(self):
'''Test use of Context'''