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
|
@ -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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue