[Python-checkins] python/dist/src/Lib posixpath.py, 1.62,
1.63 SimpleXMLRPCServer.py, 1.7, 1.8 trace.py, 1.15,
1.16 platform.py, 1.7, 1.8 xmlrpclib.py, 1.31, 1.32
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sun Nov 2 04:47:08 EST 2003
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv2423
Modified Files:
posixpath.py SimpleXMLRPCServer.py trace.py platform.py
xmlrpclib.py
Log Message:
SF patch #834015: Remove imports of unused modules
(Contributed by George Yoshida.)
Index: posixpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/posixpath.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** posixpath.py 17 Jul 2003 15:11:49 -0000 1.62
--- posixpath.py 2 Nov 2003 09:47:05 -0000 1.63
***************
*** 11,15 ****
"""
- import sys
import os
import stat
--- 11,14 ----
Index: SimpleXMLRPCServer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/SimpleXMLRPCServer.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** SimpleXMLRPCServer.py 29 Jun 2003 04:19:37 -0000 1.7
--- SimpleXMLRPCServer.py 2 Nov 2003 09:47:05 -0000 1.8
***************
*** 105,109 ****
import BaseHTTPServer
import sys
- import types
import os
--- 105,108 ----
Index: trace.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/trace.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** trace.py 14 Oct 2003 20:12:06 -0000 1.15
--- trace.py 2 Nov 2003 09:47:05 -0000 1.16
***************
*** 47,51 ****
import linecache
- import marshal
import os
import re
--- 47,50 ----
Index: platform.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/platform.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** platform.py 11 Aug 2003 11:08:49 -0000 1.7
--- platform.py 2 Nov 2003 09:47:05 -0000 1.8
***************
*** 1083,1087 ****
"""
global _sys_version_cache
- import time
if _sys_version_cache is not None:
--- 1083,1086 ----
Index: xmlrpclib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xmlrpclib.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** xmlrpclib.py 31 Oct 2003 13:49:36 -0000 1.31
--- xmlrpclib.py 2 Nov 2003 09:47:05 -0000 1.32
***************
*** 110,114 ****
ServerProxy Represents a logical connection to an XML-RPC server
! MultiCall Executor of boxcared xmlrpc requests
Boolean boolean wrapper to generate a "boolean" XML-RPC value
DateTime dateTime wrapper for an ISO 8601 string or time tuple or
--- 110,114 ----
ServerProxy Represents a logical connection to an XML-RPC server
! MultiCall Executor of boxcared xmlrpc requests
Boolean boolean wrapper to generate a "boolean" XML-RPC value
DateTime dateTime wrapper for an ISO 8601 string or time tuple or
***************
*** 895,899 ****
"""Iterates over the results of a multicall. Exceptions are
thrown in response to xmlrpc faults."""
!
for i in results:
if type(i) == type({}):
--- 895,899 ----
"""Iterates over the results of a multicall. Exceptions are
thrown in response to xmlrpc faults."""
!
for i in results:
if type(i) == type({}):
***************
*** 904,908 ****
raise ValueError,\
"unexpected type in multicall result"
!
class MultiCall:
"""server -> a object used to boxcar method calls
--- 904,908 ----
raise ValueError,\
"unexpected type in multicall result"
!
class MultiCall:
"""server -> a object used to boxcar method calls
***************
*** 921,932 ****
add_result, address = multicall()
"""
!
def __init__(self, server):
self.__server = server
self.__call_list = []
!
def __repr__(self):
return "<MultiCall at %x>" % id(self)
!
__str__ = __repr__
--- 921,932 ----
add_result, address = multicall()
"""
!
def __init__(self, server):
self.__server = server
self.__call_list = []
!
def __repr__(self):
return "<MultiCall at %x>" % id(self)
!
__str__ = __repr__
***************
*** 940,944 ****
return MultiCallIterator(self.__server.system.multicall(marshalled_list))
!
# --------------------------------------------------------------------
# convenience functions
--- 940,944 ----
return MultiCallIterator(self.__server.system.multicall(marshalled_list))
!
# --------------------------------------------------------------------
# convenience functions
***************
*** 1072,1076 ****
raises a Fault exception.
"""
- import sys
p, u = getparser()
p.feed(data)
--- 1072,1075 ----
***************
*** 1393,1397 ****
__str__ = __repr__
!
def __getattr__(self, name):
# magic method dispatcher
--- 1392,1396 ----
__str__ = __repr__
!
def __getattr__(self, name):
# magic method dispatcher
More information about the Python-checkins
mailing list