[Jython-checkins] jython: Re-apply overloaded PythonPOSIXHandler#error from 7235:01460e803ef3

jim.baker jython-checkins at python.org
Sun May 18 04:47:27 CEST 2014


http://hg.python.org/jython/rev/8ceb0723b372
changeset:   7256:8ceb0723b372
user:        Jim Baker <jim.baker at rackspace.com>
date:        Sat May 17 19:10:18 2014 -0600
summary:
  Re-apply overloaded PythonPOSIXHandler#error from 7235:01460e803ef3

files:
  src/org/python/modules/posix/PythonPOSIXHandler.java |  8 +++++++-
  1 files changed, 7 insertions(+), 1 deletions(-)


diff --git a/src/org/python/modules/posix/PythonPOSIXHandler.java b/src/org/python/modules/posix/PythonPOSIXHandler.java
--- a/src/org/python/modules/posix/PythonPOSIXHandler.java
+++ b/src/org/python/modules/posix/PythonPOSIXHandler.java
@@ -20,7 +20,13 @@
  */
 public class PythonPOSIXHandler implements POSIXHandler {
 
-	public void error(Errno error, String extraData) {
+    public void error(Errno error, String extraData) {
+        // XXX: extraData (filename) could have been unicode!
+        // http://bugs.jython.org/issue1825
+        throw Py.OSError(error, Py.newString(extraData));
+    }
+
+    public void error(Errno error, String methodName, String extraData) {
         // XXX: extraData (filename) could have been unicode!
         // http://bugs.jython.org/issue1825
         throw Py.OSError(error, Py.newString(extraData));

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list