[pypy-svn] r46498 - pypy/dist/pypy/translator/jvm/src/pypy
antocuni at codespeak.net
antocuni at codespeak.net
Wed Sep 12 13:46:34 CEST 2007
Author: antocuni
Date: Wed Sep 12 13:46:33 2007
New Revision: 46498
Modified:
pypy/dist/pypy/translator/jvm/src/pypy/ll_os.java
Log:
ll_os_isatty
Modified: pypy/dist/pypy/translator/jvm/src/pypy/ll_os.java
==============================================================================
--- pypy/dist/pypy/translator/jvm/src/pypy/ll_os.java (original)
+++ pypy/dist/pypy/translator/jvm/src/pypy/ll_os.java Wed Sep 12 13:46:33 2007
@@ -312,6 +312,16 @@
return text.length();
}
+ public static boolean ll_os_isatty(int x)
+ {
+ // XXX: this is not the right behaviour, but it's needed
+ // to have the interactive interpreter working
+ if (x == 0 || x == 1 || x == 2)
+ return true;
+ else
+ return false;
+ }
+
public static ArrayList ll_os_envitems()
{
return new ArrayList(); // XXX
More information about the pypy-svn
mailing list