[Python-checkins] python/dist/src/Lib site.py,1.49,1.50 socket.py,1.39,1.40

loewis@users.sourceforge.net loewis@users.sourceforge.net
2003年5月10日 00:36:57 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv17284/Lib
Modified Files:
	site.py socket.py 
Log Message:
Patch #734231: Update RiscOS support. In particular, correct 
riscospath.extsep, and use os.extsep throughout.
Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** site.py	16 Apr 2003 13:12:21 -0000	1.49
--- site.py	10 May 2003 07:36:54 -0000	1.50
***************
*** 163,167 ****
 for prefix in prefixes:
 if prefix:
! if sys.platform == 'os2emx':
 sitedirs = [os.path.join(prefix, "Lib", "site-packages")]
 elif os.sep == '/':
--- 163,167 ----
 for prefix in prefixes:
 if prefix:
! if sys.platform in ('os2emx', 'riscos'):
 sitedirs = [os.path.join(prefix, "Lib", "site-packages")]
 elif os.sep == '/':
Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** socket.py	29 Apr 2003 19:50:25 -0000	1.39
--- socket.py	10 May 2003 07:36:54 -0000	1.40
***************
*** 97,101 ****
 __all__.append("errorTab")
 
- del os, sys
 
 
--- 97,100 ----
***************
*** 139,142 ****
--- 138,144 ----
 'sendall', 'setblocking',
 'settimeout', 'gettimeout', 'shutdown')
+ 
+ if sys.platform == "riscos":
+ _socketmethods = _socketmethods + ('sleeptaskw',)
 
 class _closedsocket(object):

AltStyle によって変換されたページ (->オリジナル) /