mirror of
https://github.com/python/cpython.git
synced 2025-11-21 19:24:44 +00:00
Workaround for odd problem on my machine: without this I get a traceback
if I hit enter instead of return upon file selection.
This commit is contained in:
parent
ab57c7dcfc
commit
67050d2d64
1 changed files with 5 additions and 1 deletions
|
|
@ -46,7 +46,11 @@ def _PromptGetFile(prompt, *typelist):
|
||||||
good = 0
|
good = 0
|
||||||
fss = macfs.FSSpec(':cancelled')
|
fss = macfs.FSSpec(':cancelled')
|
||||||
else:
|
else:
|
||||||
|
if rr.selection:
|
||||||
fss = rr.selection[0]
|
fss = rr.selection[0]
|
||||||
|
else:
|
||||||
|
fss = None
|
||||||
|
good = 0
|
||||||
## if typehandle:
|
## if typehandle:
|
||||||
## typehandle.DisposeHandle()
|
## typehandle.DisposeHandle()
|
||||||
return fss, good
|
return fss, good
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue