[Python-checkins] CVS: python/dist/src/Lib imputil.py,1.13,1.14 httplib.py,1.17,1.18
Greg Stein
python-dev@python.org
Tue, 18 Jul 2000 02:09:50 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21642/Lib
Modified Files:
imputil.py httplib.py
Log Message:
no changes other than indentation level (now 4) and comment reflow.
use "cvs diff -b" to verify.
Index: imputil.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imputil.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** imputil.py 2000/06/26 17:31:49 1.13
--- imputil.py 2000/07/18 09:09:47 1.14
***************
*** 19,362 ****
class ImportManager:
! "Manage the import process."
! def install(self, namespace=vars(__builtin__)):
! "Install this ImportManager into the specified namespace."
! if isinstance(namespace, _ModuleType):
! namespace = vars(namespace)
[...1107 lines suppressed...]
! ImportManager().install()
! sys.path.insert(0, BuiltinImporter())
######################################################################
--- 584,598 ----
def _print_importers():
! items = sys.modules.items()
! items.sort()
! for name, module in items:
! if module:
! print name, module.__dict__.get('__importer__', '-- no importer')
! else:
! print name, '-- non-existent module'
def _test_revamp():
! ImportManager().install()
! sys.path.insert(0, BuiltinImporter())
######################################################################
Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** httplib.py 2000/06/26 08:28:01 1.17
--- httplib.py 2000/07/18 09:09:47 1.18
***************
*** 78,84 ****
try:
! from cStringIO import StringIO
except ImportError:
! from StringIO import StringIO
HTTP_PORT = 80
--- 78,84 ----
try:
[...1289 lines suppressed...]
--- 765,781 ----
if hasattr(socket, 'ssl'):
! host = 'www.c2.net'
! hs = HTTPS()
! hs.connect(host)
! hs.putrequest('GET', selector)
! hs.endheaders()
! status, reason, headers = hs.getreply()
! print 'status =', status
! print 'reason =', reason
! print
! if headers:
! for header in headers.headers: print string.strip(header)
! print
! print hs.getfile().read()