Add dummies for create/delete filehandles, just so that vanilla Grail

0.3 won't break on Windows.
This commit is contained in:
Guido van Rossum 1997-08-14 14:15:54 +00:00
parent fcaf26e245
commit f53c86c2b6
2 changed files with 12 additions and 0 deletions

View file

@ -15,6 +15,12 @@ TclVersion = _string.atof(_tkinter.TCL_VERSION)
READABLE = _tkinter.READABLE READABLE = _tkinter.READABLE
WRITABLE = _tkinter.WRITABLE WRITABLE = _tkinter.WRITABLE
EXCEPTION = _tkinter.EXCEPTION EXCEPTION = _tkinter.EXCEPTION
# These are not always defined, e.g. not on Win32 with Tk 8.0 :-(
try: _tkinter.createfilehandler
except AttributeError: _tkinter.createfilehandler = None
try: _tkinter.deletefilehandler
except AttributeError: _tkinter.deletefilehandler = None
def _flatten(tuple): def _flatten(tuple):

View file

@ -15,6 +15,12 @@ TclVersion = _string.atof(_tkinter.TCL_VERSION)
READABLE = _tkinter.READABLE READABLE = _tkinter.READABLE
WRITABLE = _tkinter.WRITABLE WRITABLE = _tkinter.WRITABLE
EXCEPTION = _tkinter.EXCEPTION EXCEPTION = _tkinter.EXCEPTION
# These are not always defined, e.g. not on Win32 with Tk 8.0 :-(
try: _tkinter.createfilehandler
except AttributeError: _tkinter.createfilehandler = None
try: _tkinter.deletefilehandler
except AttributeError: _tkinter.deletefilehandler = None
def _flatten(tuple): def _flatten(tuple):