From: <pj...@us...> - 2008-10-16 03:29:00
|
Revision: 5419 http://jython.svn.sourceforge.net/jython/?rev=5419&view=rev Author: pjenvey Date: 2008-10-16 03:28:52 +0000 (Thu, 16 Oct 2008) Log Message: ----------- another unicode/str regression: co_name and co_filename should be a str Modified Paths: -------------- trunk/jython/src/org/python/core/PyTableCode.java Modified: trunk/jython/src/org/python/core/PyTableCode.java =================================================================== --- trunk/jython/src/org/python/core/PyTableCode.java 2008-10-16 03:15:27 UTC (rev 5418) +++ trunk/jython/src/org/python/core/PyTableCode.java 2008-10-16 03:28:52 UTC (rev 5419) @@ -137,9 +137,21 @@ public PyObject __findattr_ex__(String name) { // have to craft co_varnames specially - if (name == "co_varnames") return toPyStringTuple(co_varnames); - if (name == "co_cellvars") return toPyStringTuple(co_cellvars); - if (name == "co_freevars") return toPyStringTuple(co_freevars); + if (name == "co_varnames") { + return toPyStringTuple(co_varnames); + } + if (name == "co_cellvars") { + return toPyStringTuple(co_cellvars); + } + if (name == "co_freevars") { + return toPyStringTuple(co_freevars); + } + if (name == "co_filename") { + return new PyString(co_filename); + } + if (name == "co_name") { + return new PyString(co_name); + } return super.__findattr_ex__(name); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |