[Python-checkins] CVS: python/dist/src/Mac/Lib macfsn.py,1.5,1.6
Just van Rossum
jvr@users.sourceforge.net
Wed, 31 Oct 2001 14:58:25 -0800
Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv25014
Modified Files:
macfsn.py
Log Message:
Workaround for odd problem on my machine: without this I get a traceback
if I hit enter instead of return upon file selection.
Index: macfsn.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/macfsn.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** macfsn.py 2001/08/25 12:06:37 1.5
--- macfsn.py 2001/10/31 22:58:23 1.6
***************
*** 47,51 ****
fss = macfs.FSSpec(':cancelled')
else:
! fss = rr.selection[0]
## if typehandle:
## typehandle.DisposeHandle()
--- 47,55 ----
fss = macfs.FSSpec(':cancelled')
else:
! if rr.selection:
! fss = rr.selection[0]
! else:
! fss = None
! good = 0
## if typehandle:
## typehandle.DisposeHandle()