[Python-checkins] CVS: python/dist/src/Lib/plat-riscos riscospath.py,1.1,1.2
Guido van Rossum
gvanrossum@users.sourceforge.net
Tue, 10 Apr 2001 15:03:16 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/RISCOS/support - New directory
- Next message: [Python-checkins] CVS: python/dist/src/RISCOS/support !Boot,NONE,1.1 !Run,NONE,1.1 !Sprites,NONE,1.1 !Sprites22,NONE,1.1 AddToPath,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/plat-riscos
In directory usw-pr-cvs1:/tmp/cvs-serv7796
Modified Files:
riscospath.py
Log Message:
Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger
Index: riscospath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-riscos/riscospath.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** riscospath.py 2001/03/02 05:55:07 1.1
--- riscospath.py 2001/04/10 22:03:14 1.2
***************
*** 204,208 ****
Test whether a path exists.
"""
! return swi.swi('OS_File', '5s;i', p)!=0
--- 204,211 ----
Test whether a path exists.
"""
! try:
! return swi.swi('OS_File', '5s;i', p)!=0
! except swi.error:
! return 0
***************
*** 211,215 ****
Is a path a directory? Includes image files.
"""
! return swi.swi('OS_File', '5s;i', p) in [2, 3]
--- 214,221 ----
Is a path a directory? Includes image files.
"""
! try:
! return swi.swi('OS_File', '5s;i', p) in [2, 3]
! except swi.error:
! return 0
***************
*** 218,222 ****
Test whether a path is a file, including image files.
"""
! return swi.swi('OS_File', '5s;i', p) in [1, 3]
--- 224,231 ----
Test whether a path is a file, including image files.
"""
! try:
! return swi.swi('OS_File', '5s;i', p) in [1, 3]
! except swi.error:
! return 0
- Previous message: [Python-checkins] CVS: python/dist/src/RISCOS/support - New directory
- Next message: [Python-checkins] CVS: python/dist/src/RISCOS/support !Boot,NONE,1.1 !Run,NONE,1.1 !Sprites,NONE,1.1 !Sprites22,NONE,1.1 AddToPath,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]