comparison win32.py @ 91:c62c9bfd614a

Removed import_error It was buggy anyway.
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 28 Feb 2011 16:05:20 +0000
parents 741ae3391b61
children 6c2997616bdf
comparison
equal deleted inserted replaced
90:1fb319ec33af 91:c62c9bfd614a
1 # Copyright (c) 2010-2011 Chortos-2 <chortos@inbox.lv> 1 # Copyright (c) 2010-2011 Chortos-2 <chortos@inbox.lv>
2 2
3 from __future__ import division, with_statement 3 from __future__ import division, with_statement
4 import sys 4
5 5 from compat import *
6 try: 6 import testcases # mutual import
7 from compat import *
8 import testcases # mutual import
9 except ImportError:
10 import __main__
11 __main__.import_error(sys.exc_info()[1])
12 7
13 from ctypes import * 8 from ctypes import *
14 from ctypes.wintypes import * 9 from ctypes.wintypes import *
15 from msvcrt import getch as pause 10 from msvcrt import getch as pause
16 from subprocess import Popen 11 from subprocess import Popen
12 import sys
17 13
18 try: 14 try:
19 from testcases import clock 15 from testcases import clock
20 except ImportError: 16 except ImportError:
21 from time import clock 17 from time import clock