Use WINDOWS constant

This commit is contained in:
anatoly techtonik 2013-08-26 10:45:07 +03:00
parent 5cb8afc2d1
commit 8c9bc0ee8a
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ def _getch_unix(): # [ ] _getch_linux()? (test on FreeBSD and MacOS)
# choose correct getch function at module import time
if os.name == 'nt':
if WINDOWS:
getch = _getch_windows
else:
getch = _getch_linux