[Python-checkins] python/dist/src/Lib socket.py,1.29,1.30

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 08 Aug 2002 08:25:32 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv11309

Modified Files:
	socket.py 
Log Message:
Extend __all__ with the exports list of the _ssl module.


Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** socket.py	8 Aug 2002 15:22:12 -0000	1.29
--- socket.py	8 Aug 2002 15:25:28 -0000	1.30
***************
*** 46,49 ****
--- 46,50 ----
  _have_ssl = False
  try:
+     import _ssl
      from _ssl import *
      _have_ssl = True
***************
*** 55,59 ****
  __all__ = ["getfqdn"]
  __all__.extend(os._get_exports_list(_socket))
! # XXX shouldn't there be something similar to the above for _ssl exports?
  
  _realsocket = socket
--- 56,61 ----
  __all__ = ["getfqdn"]
  __all__.extend(os._get_exports_list(_socket))
! if _have_ssl:
!     __all__.extend(os._get_exports_list(_ssl))
  
  _realsocket = socket
***************
*** 91,94 ****
--- 93,97 ----
      errorTab[10065] = "The host is unreachable."
      __all__.append("errorTab")
+ 
  del os, sys