[pypy-svn] r68493 - pypy/trunk/pypy/translator/cli/src
antocuni at codespeak.net
antocuni at codespeak.net
Thu Oct 15 15:59:16 CEST 2009
Author: antocuni
Date: Thu Oct 15 15:59:15 2009
New Revision: 68493
Modified:
pypy/trunk/pypy/translator/cli/src/ll_os.cs
Log:
catch also two more kinds of exception. This is the minimun required to run a
pypy-cli compiled on linux under windows (and vice-versa I think), because it
tries to stat() the file names in the builtin pythonpath which contain the
wrong kind of dashes
Modified: pypy/trunk/pypy/translator/cli/src/ll_os.cs
==============================================================================
--- pypy/trunk/pypy/translator/cli/src/ll_os.cs (original)
+++ pypy/trunk/pypy/translator/cli/src/ll_os.cs Thu Oct 15 15:59:15 2009
@@ -308,6 +308,14 @@
raise_OSError(Errno.EINVAL, e.Message);
return null;
}
+ catch(System.NotSupportedException e) {
+ raise_OSError(Errno.EINVAL, e.Message);
+ return null;
+ }
+ catch(System.IO.IOException e) {
+ raise_OSError(Errno.EINVAL, e.Message);
+ return null;
+ }
if (f.Exists) {
Record_Stat_Result res = new Record_Stat_Result();
More information about the Pypy-commit
mailing list