cpython/Lib
Marc-André Lemburg a5d2b4cb18 Break SSL support out of _socket module and place it into a new
helper module _ssl.

The support for the RAND_* APIs in _ssl is now only enabled
for OpenSSL 0.9.5 and up since they were added in that
release.

Note that socketmodule.* should really be renamed to _socket.* --
unfortunately, this seems to lose the CVS history of the file.

Please review and test... I was only able to test the header file
chaos in socketmodule.c/h on Linux. The test run through fine
and compiles don't give errors or warnings.

WARNING: This patch does *not* include changes to the various
non-Unix build process files.
2002-02-16 18:23:30 +00:00
..
compiler Whitespace normalization. 2002-02-16 07:34:19 +00:00
curses Catch curses.error instead of a non-existent global (PyChecker) 2001-08-13 13:47:23 +00:00
distutils on MacOSX/Darwin, use ranlib when building static libs. 2002-02-11 15:31:50 +00:00
email _parsebody(): When adding subparts to a multipart container, make sure 2002-01-27 06:48:02 +00:00
encodings Corrected import behaviour for codecs which live outside the encodings 2002-02-11 17:43:46 +00:00
hotshot Update to reflect changes to the low-level logreader: share the info 2001-10-29 20:57:23 +00:00
idlelib improvement to keybinding re-use check 2002-02-11 03:45:22 +00:00
lib-old Use string.ascii_letters instead of string.letters (SF bug #226706). 2001-07-20 19:05:50 +00:00
lib-tk Fix typo in label 2002-01-02 16:38:19 +00:00
plat-aix3 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-aix4 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-beos5 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-freebsd2 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-freebsd3 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-freebsd4 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-freebsd5 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-generic Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-irix5 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-irix6 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-linux1 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-linux2 Regenerated for Linux 2.2.4. 2001-12-22 15:23:50 +00:00
plat-netbsd1 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-next3
plat-riscos SF patch 493739 2 Bugfixes for 2.2c1 (RISC OS specific), from 2001-12-15 22:12:47 +00:00
plat-sunos4
plat-sunos5 Regenerate for Solaris 8. 2001-08-09 12:33:32 +00:00
plat-unixware7 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
site-packages
test Whitespace normalization. 2002-02-16 07:34:19 +00:00
xml Attribute nodes did not always get their ownerDocument and ownerElement 2001-12-06 18:27:48 +00:00
BaseHTTPServer.py Remove unused imports from previous checkin. 2001-07-25 06:12:16 +00:00
Bastion.py
CGIHTTPServer.py Wesley Chun's SF patch 511380: add CGIHTTPServer error supt for Win32 2002-02-01 16:27:59 +00:00
ConfigParser.py Whitespace normalization. 2001-10-18 21:57:37 +00:00
Cookie.py Patch #444359: Remove unused imports. 2001-08-02 07:15:29 +00:00
FCNTL.py
HTMLParser.py Convert to using string methods instead of the string module. 2001-12-03 17:09:50 +00:00
MimeWriter.py
Queue.py
SimpleHTTPServer.py
SimpleXMLRPCServer.py _dispatch(): Do no re-define the resolve_dotted_atttribute() function 2001-09-29 04:54:33 +00:00
SocketServer.py Apply the first chunk of the second patch from SF bug #471720: 2001-10-23 21:42:45 +00:00
StringIO.py SF #515000, print result of f.tell() in test() instead of ignoring 2002-02-11 17:52:18 +00:00
TERMIOS.py
UserDict.py copy(): Make sure the copy of a derived class cannot share the data of the 2001-11-05 17:40:48 +00:00
UserList.py
UserString.py
__future__.py Repair repr of future-features (wasn't updated to include the new 2001-08-24 17:13:54 +00:00
__phello__.foo.py Fix the frozen bytecode for __hello__ (betcha didn't know that existed 2001-10-18 18:49:37 +00:00
aifc.py SF #515004 cleanup 2002-02-11 17:56:27 +00:00
anydbm.py
asynchat.py
asyncore.py Partial fix for problem in SF buf #487458 2001-12-14 16:15:11 +00:00
atexit.py
audiodev.py Commenting out the getfillable() method -- it's broken, and nobody 2001-08-13 15:04:33 +00:00
base64.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
bdb.py SF #515005, change "1 + ''" (which pychecker warns about being invalid) 2002-02-11 18:26:02 +00:00
binhex.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
bisect.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
calendar.py
cgi.py SF #515006, remove unnecessary import 2002-02-11 17:57:55 +00:00
cgitb.py Make the module docstring agree with reality: the module prvides the 2001-12-19 14:27:41 +00:00
chunk.py
cmd.py Whitespace normalization. 2001-08-09 21:40:30 +00:00
code.py softspace(): be prepared to catch AttributeError as well as TypeError 2001-09-18 13:33:01 +00:00
codecs.py Added new helpers for easy access to codecs. Docs will follow. 2001-09-19 11:24:48 +00:00
codeop.py A fiddled version of the rest of Michael Hudson's SF patch 2001-08-17 22:11:27 +00:00
colorsys.py
commands.py
compileall.py
copy.py Fix for SF bug ##497426: can't deepcopy recursive new objects 2001-12-28 21:33:22 +00:00
copy_reg.py _reduce(): Avoid infinite recursion in the pickler when self.__class__ 2001-12-27 16:27:28 +00:00
dbhash.py
difflib.py Whitespace normalization. 2001-10-04 05:36:56 +00:00
dircache.py
dis.py SF #515009, delete global variable that was apparently used only 2002-02-11 18:14:22 +00:00
doctest.py SF bug [#473864] doctest expects spurios space. 2001-10-23 02:21:52 +00:00
dospath.py SF bug [#469732] os.path.walk docstring inconsistent. 2001-10-10 04:16:20 +00:00
dumbdbm.py Whitespace normalization. 2002-02-16 07:34:19 +00:00
filecmp.py
fileinput.py SF patch #474590 -- RISC OS support 2001-10-24 20:42:55 +00:00
fnmatch.py
formatter.py Remove empty __init__ (PyChecker) 2001-08-13 14:55:17 +00:00
fpformat.py
ftplib.py Whitespace normalization. 2002-02-16 07:34:19 +00:00
getopt.py Wrapped a long line. 2001-12-12 06:20:34 +00:00
getpass.py win_getpass(): if sys.stdin is not sys.__stdin__, use 2001-08-30 15:07:44 +00:00
gettext.py Add a per-message fallback mechanism for translations. 2002-01-11 06:58:49 +00:00
glob.py
gopherlib.py Remove unused variable (PyChecker) 2001-08-13 14:52:37 +00:00
gzip.py "f" should be "self"; reported by Neal Norwitz. 2001-10-13 18:33:51 +00:00
hmac.py Whitespace normalization. 2001-11-13 21:51:26 +00:00
htmlentitydefs.py
htmllib.py
httplib.py SF #515011, cleanup: remove "or 0" condition 2002-02-11 17:59:51 +00:00
ihooks.py
imaplib.py Time2Internaldate(): Call isinstance() once for each of the type tests 2002-01-05 17:17:09 +00:00
imghdr.py
imputil.py SF #515012, cleanup: remove unused variable 2002-02-11 18:01:32 +00:00
inspect.py Get rid of __defined__ and tp_defined -- there's no need to 2001-10-15 22:03:32 +00:00
keyword.py
knee.py
linecache.py
locale.py Remove some dead code (PyChecker) 2001-08-13 14:50:44 +00:00
macpath.py SF bug [#469732] os.path.walk docstring inconsistent. 2001-10-10 04:16:20 +00:00
macurl2path.py
mailbox.py SF bug #461073: mailbox __iter__ bug, by Andrew Dalke. 2001-09-13 01:29:13 +00:00
mailcap.py
markupbase.py Re-arrange things and remove some unused variables/imports to keep pychecker 2001-10-26 18:02:28 +00:00
mhlib.py Folder.getlast(): avoid PyChecker warning. 2001-10-17 05:59:26 +00:00
mimetools.py
mimetypes.py Separate the script portion from the library portion; everything that 2001-12-05 15:58:29 +00:00
mimify.py Fix for SF bug #425868. 2001-07-04 10:15:58 +00:00
multifile.py Martijn Pieters convinced me that when readline() strips the trailing 2001-10-05 21:22:21 +00:00
mutex.py
netrc.py
nntplib.py changed misleading argument name 2001-10-18 20:58:25 +00:00
ntpath.py Allow abspath to still do something sensisble if the nt module can not be imported. 2002-01-17 00:44:26 +00:00
nturl2path.py Use string.ascii_letters instead of string.letters. 2001-07-20 18:52:02 +00:00
os.py Whitespace normalization. 2001-10-30 05:56:40 +00:00
pdb.doc
pdb.py
pickle.py SF #515018, delete global variable that was apparently used only 2002-02-11 18:12:06 +00:00
pipes.py Patch #444359: Remove unused imports. 2001-08-02 07:15:29 +00:00
popen2.py Patch #487784: Support Unicode commands in popen3/4 handling on UNIX. 2001-12-02 13:32:15 +00:00
poplib.py Re-enabled debugging prints in poplib & documented the set_debuglevel() 2001-12-05 22:37:21 +00:00
posixfile.py Add a warning to the posixfile module stating that it will go away. 2001-10-24 22:03:35 +00:00
posixpath.py SF bug [#469732] os.path.walk docstring inconsistent. 2001-10-10 04:16:20 +00:00
pprint.py __format(): Applied SF patch #482003 by Skip to fix multiline dict 2001-11-28 05:49:39 +00:00
pre.py
profile.doc
profile.py Added a missing period at the end of an error message. 2001-12-05 22:27:47 +00:00
pstats.py Put the deprecated .ignore() method back where it was. 2001-10-08 06:28:18 +00:00
pty.py
py_compile.py
pyclbr.py SF bug #473525 pyclbr broken 2001-10-24 20:22:40 +00:00
pydoc.py SF patch #474485: pydoc generates some bad html, from Rich Salz. 2001-10-31 04:20:26 +00:00
quopri.py Patch 471400: escape single-dot lines; by Jason Hildebrand. 2001-10-15 18:44:26 +00:00
random.py SF patch 483059: Avoid use of eval() in random.py, from Finn Bock. 2001-11-25 21:12:43 +00:00
re.py Added docstrings by Neal Norwitz. This closes SF bug #450980. 2001-09-04 19:10:20 +00:00
reconvert.py Suppress the warning about regex here. 2001-09-04 15:18:54 +00:00
regex_syntax.py
regsub.py
repr.py Rename "dictionary" (type and constructor) to "dict". 2001-10-29 22:25:45 +00:00
rexec.py Ignore execfile() return value; reported by Neal Norwitz. 2001-10-13 18:34:42 +00:00
rfc822.py SF patch #495358 (Artur Zaprzala): rfc822.AddressList and "<>" address 2001-12-20 15:54:48 +00:00
rlcompleter.py
robotparser.py Remove unused import (PyChecker) 2001-08-13 14:43:43 +00:00
sched.py
sgmllib.py Re-arrange things and remove some unused variables/imports to keep pychecker 2001-10-26 18:02:28 +00:00
shelve.py
shlex.py
shutil.py
site.py SF #515020, delete global variables which are used only for temporary 2002-02-11 18:34:41 +00:00
smtpd.py SF #515021, print the refused list to the DEBUGSTREAM, so the parameter is used 2002-02-11 18:05:05 +00:00
smtplib.py send(), ehlo(): Integrate patch #487310 by Fazal Majid. Consistently 2001-12-14 20:34:20 +00:00
sndhdr.py Amazing. This would open the sound file in text mode. Fixed. 2001-07-31 06:27:07 +00:00
socket.py Break SSL support out of _socket module and place it into a new 2002-02-16 18:23:30 +00:00
sre.py added finditer sanity check 2001-10-28 20:15:40 +00:00
sre_compile.py Added docstrings by Neal Norwitz. This closes SF bug #450980. 2001-09-04 19:10:20 +00:00
sre_constants.py Added docstrings by Neal Norwitz. This closes SF bug #450980. 2001-09-04 19:10:20 +00:00
sre_parse.py SF #515022 remove unused variable 2002-02-11 18:18:29 +00:00
stat.py
statcache.py
statvfs.py
string.py string.split() docstring described the interpretation of the maxsplit 2002-01-30 16:15:13 +00:00
stringold.py
sunau.py
sunaudio.py
symbol.py track addition of testlist_safe to Grammar 2001-10-17 13:13:04 +00:00
symtable.py Remove now-unnecessary "from __future__ import nested_scopes" stmts. 2001-07-12 22:36:02 +00:00
tabnanny.py Add the NannyNag exception class and the process_tokens() function to 2001-08-07 17:19:25 +00:00
telnetlib.py Only close sockets if they have been created. Reported by Blake Winton. 2001-10-07 08:53:32 +00:00
tempfile.py Thanks to Detlef Lannert for pointing out a typo in the code that 2002-01-30 09:11:42 +00:00
this.py Whitespace cleanup. 2002-02-08 20:41:34 +00:00
threading.py Thread.__bootstrap(): ignore exceptions in the self.__delete() call in 2001-12-28 22:07:09 +00:00
toaiff.py Capture exception message (PyChecker) 2001-08-13 14:40:47 +00:00
token.py Remove redundant 'import string' (PyChecker). 2001-08-13 15:48:06 +00:00
tokenize.py SF patch #455966: Allow leading 0 in float/imag literals. 2001-08-30 20:51:59 +00:00
traceback.py
tty.py
types.py Patch #487455: make types.StringTypes a tuple. 2001-12-02 12:08:06 +00:00
tzparse.py
unittest.py Synch with pyunit CVS: 2001-12-17 10:13:17 +00:00
urllib.py SF #515024 remove unused variable 2002-02-11 18:06:21 +00:00
urllib2.py Fix bug #511786 (2.2.1 candidate): ensure that custom-supplied headers 2002-02-11 20:46:10 +00:00
urlparse.py Fix parsing of parameters from a URL; urlparse() did not check that it only 2001-11-16 02:52:57 +00:00
user.py
uu.py decode(): Raise a uu.Error if no out_file is given but the file 2001-08-17 19:59:34 +00:00
warnings.py Allow for the possibility that globals['__name__'] does not exist; 2001-08-31 17:46:35 +00:00
wave.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
weakref.py WeakKeyDictionary.has_key(): If the key being tested is not weakly 2001-11-06 16:36:53 +00:00
webbrowser.py SF #515026, delete global variable that was apparently used only 2002-02-11 18:11:09 +00:00
whichdb.py SF patch #474590 -- RISC OS support 2001-10-24 20:42:55 +00:00
whrandom.py
xdrlib.py Use (c)StringIO for collecting bytes. Fixes bug #451622. 2001-08-16 17:06:44 +00:00
xmllib.py
xmlrpclib.py partial merge with current pythonware codebase: 2001-12-19 21:40:04 +00:00
zipfile.py SF bug #488514: -Qnew needs work 2001-12-06 06:23:26 +00:00