From: Pekka L. <pe...@ik...> - 2007-07-24 23:20:29
|
Hello, I submitted the bug in the subject line some time ago and finally today remembered to investigate it a bit more. I found out that the actual problem is in javashell.py where following code is used when creating the command to be executed with Runtime.exec. Fixing the bug is thus as easy as changing StringType to StringTypes. if isinstance(cmd, types.StringType): shellCmd = self.cmd + [cmd] else: shellCmd = cmd I've now created a patch including the fix and two new unit tests to test_javashell.py. Since the fix seems to be pretty trivial and the bug itself can be pretty nasty (at least it was hard to debug when it hit me) I kindly ask devs to consider applying the patch even though we are pretty close to 2.2 final. The direct link to the bug is http://jython.org/bugs/1735774 and the patch is attached to it. Cheers, .peke |