Message3963

Author amak
Recipients amak, cgroves, kam
Date 2008-12-18.20:29:14
SpamBayes Score 4.8173337e-07
Marked as misclassified No
Message-id <1229632155.09.0.629497394221.issue1204@psf.upfronthosting.co.za>
In-reply-to
Content
I encountered this exact problem with modjy, which broke after jython
2.5b0. I reported it as an issue

http://bugs.jython.org/issue1171

The cause was a backwards incompatible API change.

You need to change your code as described in that issue.

If you need for your code to work on all versions, you can do what modjy
now does, as follows

try:
    from org.python.core.util import FileUtil
    create_py_file = FileUtil.wrap
except ImportError:
    from org.python.core import PyFile
    create_py_file = PyFile

my_file = create_py_file(FileInputStream("in.txt"))

HTH.
History
Date User Action Args
2008-12-18 20:29:15amaksetmessageid: <1229632155.09.0.629497394221.issue1204@psf.upfronthosting.co.za>
2008-12-18 20:29:15amaksetrecipients: + amak, cgroves, kam
2008-12-18 20:29:15amaklinkissue1204 messages
2008-12-18 20:29:14amakcreate