From: <ba...@us...> - 2008-10-03 16:27:02
|
Revision: 1069 http://omc.svn.sourceforge.net/omc/?rev=1069&view=rev Author: bartw Date: 2008-10-03 16:26:48 +0000 (Fri, 03 Oct 2008) Log Message: ----------- fixed bug in python code Modified Paths: -------------- cmpi-bindings/trunk/swig/cmpi_types.i Modified: cmpi-bindings/trunk/swig/cmpi_types.i =================================================================== --- cmpi-bindings/trunk/swig/cmpi_types.i 2008-10-03 12:33:03 UTC (rev 1068) +++ cmpi-bindings/trunk/swig/cmpi_types.i 2008-10-03 16:26:48 UTC (rev 1069) @@ -518,12 +518,11 @@ #if defined(SWIGPYTHON) %pythoncode %{ def keys(self): - r = range(0,self.key_count()) - while r: - yield self.get_key_at(r.pop(0)) + for i in xrange(0, self.key_count()): + yield self.get_key_at(i) %} #endif - + /* Set/replace namespace and classname components from <src>. */ void replace_from(const CMPIObjectPath * src) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |