comparison unix.py @ 86:8cd7a732f2f3

Fixed a crash in the unix module Bug fix: Upreckon no longer crashes on non-Win32 when the standard input is not a console or Upreckon does not have the tools to catch key presses.
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 25 Feb 2011 00:10:20 +0000
parents 741ae3391b61
children c62c9bfd614a
comparison
equal deleted inserted replaced
85:741ae3391b61 86:8cd7a732f2f3
9 except ImportError: 9 except ImportError:
10 import __main__ 10 import __main__
11 __main__.import_error(sys.exc_info()[1]) 11 __main__.import_error(sys.exc_info()[1])
12 12
13 from subprocess import Popen 13 from subprocess import Popen
14 import os, sys 14 import os, sys, time
15 15
16 try: 16 try:
17 from testcases import clock 17 from testcases import clock
18 except ImportError: 18 except ImportError:
19 if sys.platform.startswith('java'): 19 if sys.platform.startswith('java'):