[CMF-checkins] CVS: CMF/CMFCore/tests/base - dummy.py:1.12
Yvo Schubbe
cvs-admin at zope.org
Fri Nov 28 09:52:33 EST 2003
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv17565/CMFCore/tests/base
Modified Files:
dummy.py
Log Message:
some code modernization:
- death to string module
- death to apply
- import and whitespace cleanup
=== CMF/CMFCore/tests/base/dummy.py 1.11 => 1.12 ===
--- CMF/CMFCore/tests/base/dummy.py:1.11 Mon Sep 29 07:19:39 2003
+++ CMF/CMFCore/tests/base/dummy.py Fri Nov 28 09:52:01 2003
@@ -112,7 +112,7 @@
def addFoo( self, id, *args, **kw ):
if getattr(self._folder, '_prefix', None):
id = '%s_%s' % ( self._folder._prefix, id )
- foo = apply( DummyContent, ( id, ) + args, kw )
+ foo = DummyContent(id, *args, **kw)
self._folder._setObject(id, foo)
if getattr(self._folder, '_prefix', None):
return id
More information about the CMF-checkins
mailing list