From: <pj...@us...> - 2008-12-14 23:57:41
|
Revision: 5761 http://jython.svn.sourceforge.net/jython/?rev=5761&view=rev Author: pjenvey Date: 2008-12-14 23:57:35 +0000 (Sun, 14 Dec 2008) Log Message: ----------- coerce the POSIXHandler's error message back to a str Modified Paths: -------------- trunk/jython/Lib/os.py Modified: trunk/jython/Lib/os.py =================================================================== --- trunk/jython/Lib/os.py 2008-12-14 18:29:43 UTC (rev 5760) +++ trunk/jython/Lib/os.py 2008-12-14 23:57:35 UTC (rev 5761) @@ -101,8 +101,8 @@ def error(self, error, msg): err = getattr(errno, error.name(), None) if err is None: - raise OSError('%s: %s' % (error, msg)) - raise OSError(err, strerror(err), msg) + raise OSError('%s: %s' % (error, asPyString(msg))) + raise OSError(err, strerror(err), asPyString(msg)) def unimplementedError(self, method_name): raise NotImplementedError(method_name) def warn(self, warning_id, msg, rest): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |