mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Add dummies for create/delete filehandles, just so that vanilla Grail
0.3 won't break on Windows.
This commit is contained in:
parent
fcaf26e245
commit
f53c86c2b6
2 changed files with 12 additions and 0 deletions
|
@ -16,6 +16,12 @@ READABLE = _tkinter.READABLE
|
|||
WRITABLE = _tkinter.WRITABLE
|
||||
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):
|
||||
res = ()
|
||||
|
|
|
@ -16,6 +16,12 @@ READABLE = _tkinter.READABLE
|
|||
WRITABLE = _tkinter.WRITABLE
|
||||
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):
|
||||
res = ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue