cpython/Lib
Gregory P. Smith e9fef694b4 Change socket.error to inherit from IOError rather than being a stand
alone class.  This addresses the primary concern in

 http://bugs.python.org/issue1706815

python-dev discussion here:

 http://mail.python.org/pipermail/python-dev/2007-July/073749.html

I chose IOError rather than EnvironmentError as the base class since
socket objects are often used as transparent duck typed file objects
in code already prepared to deal with IOError exceptions.

also a minor fix:

 urllib2 - fix a couple places where IOError was raised rather than URLError.
           for better or worse, URLError already inherits from IOError so
           this won't break any existing code.

 test_urllib2net - replace bad ftp urls.
2007-09-09 23:36:46 +00:00
..
bsddb email address update 2007-09-09 20:25:00 +00:00
compiler Backport PEP 3110's new 'except' syntax to 2.6. 2007-05-18 23:11:24 +00:00
ctypes Backport from py3k branch: 2007-09-07 09:33:24 +00:00
curses [Bug #1152762] Ensure _end_of_line() returns an x-coordinate that's within the text box 2005-06-02 00:10:04 +00:00
distutils be explicit about the actual location of the missing file 2007-09-08 00:34:17 +00:00
email In response to this SF bug: 2007-07-13 22:12:58 +00:00
encodings Fix #883466: don't allow Unicode as arguments to quopri and uu codecs. 2007-09-03 07:16:46 +00:00
hotshot
idlelib Patch 1693258: Fix for duplicate "preferences" menu-OS X 2007-07-09 06:02:21 +00:00
lib-tk Whitespace normalization. 2007-01-30 03:03:46 +00:00
logging Patch #1779550: remove redundant code in logging. 2007-08-23 21:55:57 +00:00
msilib Properly generate logical file ids. Fixes #1515998. 2006-07-06 19:28:03 +00:00
plat-aix3
plat-aix4
plat-atheos
plat-beos5
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7 Whitespace normalization. 2005-07-17 23:16:17 +00:00
plat-generic
plat-irix5
plat-irix6
plat-linux2
plat-mac Have cfmfile raise a DeprecationWarning as per PEP 4. 2007-05-31 20:01:11 +00:00
plat-netbsd1
plat-next3
plat-os2emx
plat-riscos Bug #649974: make docstrings for url2pathname consistent 2005-12-26 22:53:56 +00:00
plat-sunos5 with and as are now keywords. There are some generated files I can't recreate. 2006-09-06 06:28:06 +00:00
plat-unixware7
site-packages
sqlite3 Merged changes from standalone version 2.3.3. This should probably all be 2007-01-14 01:43:50 +00:00
test Change socket.error to inherit from IOError rather than being a stand 2007-09-09 23:36:46 +00:00
wsgiref Sync w/external release 0.1.2. Please see PEP 360 before making changes to external packages. 2006-06-12 04:04:32 +00:00
xml Patch 1463026: Support default namespace in XMLGenerator. 2007-02-12 12:21:10 +00:00
BaseHTTPServer.py Fix the signature of log_error(). (A subclass that did the right thing 2007-01-10 23:12:56 +00:00
Bastion.py Patch #1698951: clarify deprecation message in rexec and Bastion 2007-04-12 07:01:19 +00:00
CGIHTTPServer.py Patch #1481079: Support of HTTP_REFERER in CGIHTTPServer.py 2007-03-09 03:15:56 +00:00
ConfigParser.py Deprecate BaseException.message as per PEP 352. 2007-05-05 01:34:02 +00:00
Cookie.py Whitespace normalization. 2006-08-15 00:25:04 +00:00
DocXMLRPCServer.py Patch #1599845: Add an option to disable the implicit calls to server_bind() and server_activate() in the constructors for TCPServer, SimpleXMLRPCServer and DocXMLRPCServer. 2007-03-10 14:41:48 +00:00
HTMLParser.py Patch #912410: Replace HTML entity references for attribute values 2007-03-06 14:43:00 +00:00
MimeWriter.py Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation. 2007-05-30 20:46:26 +00:00
Queue.py ... and the number of the counting shall be three. 2006-11-23 21:35:19 +00:00
SimpleHTTPServer.py [Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work. 2006-12-22 19:06:16 +00:00
SimpleXMLRPCServer.py Added a flag (_send_traceback_header) to the SimpleXMLRPCServer class 2007-08-17 19:16:44 +00:00
SocketServer.py Whitespace normalization. 2007-03-12 18:07:52 +00:00
StringIO.py [Bug #1622533] Make docstrings raw strings because they contain control characters (\0, \1) 2007-01-05 14:22:17 +00:00
UserDict.py - Patch 1433928: 2006-02-25 22:38:04 +00:00
UserList.py
UserString.py Improve extended slicing support in builtin types and classes. Specifically: 2007-08-28 15:28:19 +00:00
_LWPCookieJar.py Remove unused import. 2006-05-18 06:18:06 +00:00
_MozillaCookieJar.py Make use of new str.startswith/endswith semantics. 2006-06-09 20:43:48 +00:00
__future__.py I could have sworn this was part of the change to not abbreviate ABSOLUTE 2006-04-03 06:58:51 +00:00
__phello__.foo.py
_strptime.py Make _strptime.TimeRE().pattern() use ``\s+`` for matching whitespace instead 2007-06-03 23:13:41 +00:00
_threading_local.py Finally figured out why this module did its imports at the 2006-04-18 03:28:32 +00:00
aifc.py Add a length check to aifc to ensure it doesn't write a bogus file 2006-05-30 00:26:01 +00:00
anydbm.py
asynchat.py [Patch #1002763] Allow long ints as terminator values; also, treat a terminator of 0 like the empty string or None 2005-06-09 14:59:45 +00:00
asyncore.py No need to import exceptions, they are builtins 2005-09-01 00:45:28 +00:00
atexit.py Bug #1597824: return the registered function from atexit.register() 2006-11-16 16:50:59 +00:00
audiodev.py
base64.py Clarify docstring 2006-10-27 17:06:16 +00:00
bdb.py Patch #721464: pdb.Pdb instances can now be given explicit stdin and 2006-05-10 17:13:20 +00:00
binhex.py Remove the macfs module. This led to the deprecation of macostools.touched(); 2007-05-20 23:17:38 +00:00
bisect.py SF 1602378 Clarify docstrings for bisect 2007-04-03 00:02:11 +00:00
cProfile.py Added the cProfile module. 2006-02-08 12:53:56 +00:00
calendar.py Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for 2007-08-28 16:38:26 +00:00
cgi.py Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes 2006-09-30 10:58:01 +00:00
cgitb.py HTML-escape the plain traceback in cgitb's HTML output, to prevent 2007-05-15 20:19:34 +00:00
chunk.py Patch #1373643: The chunk module can now read chunks larger than 2006-02-18 21:10:56 +00:00
cmd.py
code.py
codecs.py Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and 2006-10-29 08:39:22 +00:00
codeop.py Conversion of exceptions over from faked-up classes to new-style C types. 2006-05-27 12:29:24 +00:00
collections.py Allow all alphanumeric and underscores in type and field names. 2007-05-21 16:40:10 +00:00
colorsys.py A very minor bug fix: this code looks like it is designed to accept 2006-10-06 16:33:22 +00:00
commands.py Deprecate commands.getstatus(). 2007-03-13 21:32:01 +00:00
compileall.py Bugs item #1069409 C:\Python24\Lib\compileall.py returns False 2004-12-20 00:29:29 +00:00
contextlib.py Use try-except-finally in contextlib. 2007-08-23 18:11:33 +00:00
cookielib.py Whitespace normalization. 2007-01-30 03:03:46 +00:00
copy.py Whitespace normalization. 2006-02-26 04:21:50 +00:00
copy_reg.py Fix warnings about object.__init__() signature. 2007-04-02 23:55:37 +00:00
csv.py Patch #1635454: the csv.DictWriter class now includes the offending 2007-03-13 09:32:11 +00:00
dbhash.py
decimal.py When passed a bad formed literal to Decimal, now we have a 2007-08-15 15:13:09 +00:00
difflib.py SF #1637850: make_table in difflib did not work with unicode 2007-03-08 21:33:47 +00:00
dircache.py
dis.py
doctest.py Small nit, found by Neal. 2007-03-06 18:21:32 +00:00
dumbdbm.py Whitespace normalization. 2007-01-30 03:03:46 +00:00
dummy_thread.py Remove specific mention of my name and email address from modules. Not really 2007-01-25 23:30:39 +00:00
dummy_threading.py Remove specific mention of my name and email address from modules. Not really 2007-01-25 23:30:39 +00:00
filecmp.py
fileinput.py Whitespace normalization. 2006-02-19 21:26:07 +00:00
fnmatch.py
formatter.py remove the other half of one of the regsub-related comments; the other 2004-12-07 14:08:24 +00:00
fpformat.py
ftplib.py FTP.ntransfercmd method now uses create_connection when passive, 2007-06-06 15:13:37 +00:00
functools.py Patch # 1739906 by Christian Heimes -- add reduce to functools (importing 2007-08-27 20:51:00 +00:00
genericpath.py Small speedup. 2007-05-14 20:52:31 +00:00
getopt.py
getpass.py Bug #1445068: getpass.getpass() can now be given an explicit stream 2006-03-31 18:42:16 +00:00
gettext.py Patch #1349274: gettext.install() now optionally installs additional 2006-02-19 13:26:36 +00:00
glob.py Fix for glob.py if filesystem encoding is None. 2007-03-20 23:05:14 +00:00
gzip.py Strip the '.gz' extension from the filename that is written to the 2007-02-13 16:24:00 +00:00
hashlib.py email address update 2007-09-09 20:25:00 +00:00
heapq.py Docstring nit. 2007-02-28 18:27:41 +00:00
hmac.py [Rest of patch #1182394] Add ._current() method so that we can use the written-in-C .hexdigest() method 2006-12-27 03:31:24 +00:00
htmlentitydefs.py
htmllib.py
httplib.py deprecate use of FakeSocket 2007-08-31 19:02:23 +00:00
ihooks.py
imaplib.py remove mentions of socket.ssl in comments 2007-08-31 19:02:46 +00:00
imghdr.py SF #75103: imghdr -- identify JPEGs in EXIF format 2005-01-07 08:15:41 +00:00
imputil.py Patch #685268: Consider a package's __path__ in imputil. 2007-02-13 08:34:45 +00:00
inspect.py Patch #1739696: use code.co_code only if really necessary 2007-07-12 08:11:29 +00:00
keyword.py Regenerate. 2006-02-28 22:50:17 +00:00
linecache.py Linecache contains support for PEP302 loaders, but fails to deal with loaders 2006-06-13 11:19:56 +00:00
locale.py Patch #1710352: add missing public functions to locale.__all__. 2007-05-01 06:08:15 +00:00
macpath.py Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', ''). 2007-03-07 11:04:33 +00:00
macurl2path.py Bug #649974: make docstrings for url2pathname consistent 2005-12-26 22:53:56 +00:00
mailbox.py Avoid exception if there's a stray directory inside a Maildir folder. 2007-07-14 21:56:19 +00:00
mailcap.py
markupbase.py Normalized a few cases of whitespace in function declarations. 2006-06-06 12:46:55 +00:00
md5.py email address update 2007-09-09 20:25:00 +00:00
mhlib.py Replace list of constants with tuples of constants. 2005-02-06 06:57:08 +00:00
mimetools.py Bug #1250170, Patch #1462230: handle socket.gethostname() 2006-03-31 17:18:06 +00:00
mimetypes.py Add bz2 to content encodings. 2007-05-13 08:04:07 +00:00
mimify.py Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the 2007-05-30 21:48:58 +00:00
modulefinder.py Modulefinder now handles absolute and relative imports, including 2006-10-27 19:05:53 +00:00
multifile.py
mutex.py
netrc.py
new.py
nntplib.py - Bug #1015140: disambiguated the term "article id" in nntplib docs and 2005-07-17 20:27:41 +00:00
ntpath.py Bug #1688564: document os.path.join's absolute path behavior in the docstring. 2007-08-23 21:27:57 +00:00
nturl2path.py Bug #649974: make docstrings for url2pathname consistent 2005-12-26 22:53:56 +00:00
opcode.py PEP 343 -- the with-statement. 2006-02-27 22:32:47 +00:00
optparse.py Resync optparse with Optik 1.5.3: minor tweaks for/to tests. 2006-07-23 16:05:51 +00:00
os.py Deprecate os.popen* and popen2 module in favor of the subprocess module. 2007-05-11 06:57:33 +00:00
os2emxpath.py - Move functions common to all path modules into genericpath.py and have the 2006-08-26 18:42:06 +00:00
pdb.doc Patch #1393667: pdb now has a "run" command which restarts the debugged 2007-03-13 21:08:15 +00:00
pdb.py Whitespace normalization. Ugh, we really need to do this more often. 2007-04-25 06:30:05 +00:00
pickle.py Revert previous checkin. 2005-02-07 15:28:45 +00:00
pickletools.py An instance of class PicklingError was used here simply as an example of 2005-02-15 16:22:34 +00:00
pipes.py Patch #1680959: add test suite for pipes module. 2007-08-30 10:38:56 +00:00
pkgutil.py Bug #1529871: The speed enhancement patch #921466 broke Python's compliance 2006-07-28 21:12:07 +00:00
platform.py Add patch #1726668: Windows Vista support. 2007-06-12 09:26:49 +00:00
popen2.py Deprecate os.popen* and popen2 module in favor of the subprocess module. 2007-05-11 06:57:33 +00:00
poplib.py Don't lie in __all__ attributes when SSL is not available: only add the SSL 2007-08-30 21:54:39 +00:00
posixfile.py Cause posixfile to raise a DeprecationWarning. Documented as deprecated since 2007-05-20 23:57:38 +00:00
posixpath.py Bug #1688564: document os.path.join's absolute path behavior in the docstring. 2007-08-23 21:27:57 +00:00
pprint.py pprint functions used to sort a dict (by key) if and only if 2006-06-02 23:22:51 +00:00
profile.py test and fix for buggy handling of exceptions raised by C functions, 2005-09-20 18:50:13 +00:00
pstats.py Bug #1603321: make pstats.Stats accept Unicode file paths. 2006-11-26 19:27:47 +00:00
pty.py Whitespace normalization. 2007-01-30 03:03:46 +00:00
py_compile.py Patch #1171150: add a newline to py_compile error output 2005-06-10 17:15:18 +00:00
pyclbr.py Bug #1560617: in pyclbr, return full module name not only for classes, 2006-09-30 11:06:47 +00:00
pydoc.py Patch #1194449: correctly detect unbound methods in pydoc. 2007-03-13 22:16:30 +00:00
quopri.py
random.py SF# 1635892: Fix docs for betavariate's input parameters . 2007-01-19 18:07:18 +00:00
re.py Rename sre.py -> re.py 2006-03-16 06:30:02 +00:00
repr.py Bug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute. 2007-06-11 07:29:43 +00:00
rexec.py Patch #1698951: clarify deprecation message in rexec and Bastion 2007-04-12 07:01:19 +00:00
rfc822.py Bug #1249573: fix rfc822.parsedate not accepting a certain date format 2007-01-22 21:10:33 +00:00
rlcompleter.py Patch #1472854: make the rlcompleter.Completer class usable on non- 2006-04-30 18:14:54 +00:00
robotparser.py fixes 813986 2007-08-28 23:22:52 +00:00
runpy.py Fix bug 1764407 - the -i switch now does the right thing when using the -m switch 2007-08-25 10:50:41 +00:00
sched.py SF 1676321: empty() returned wrong result 2007-03-08 19:24:27 +00:00
sets.py Deprecate the sets module. 2007-01-13 00:29:49 +00:00
sgmllib.py Replace unnecessary function call. 2007-08-06 07:39:09 +00:00
sha.py email address update 2007-09-09 20:25:00 +00:00
shelve.py Bug #1339007: Shelf objects now don't raise an exception in their 2006-06-14 06:08:31 +00:00
shlex.py Fix parameter passing. 2007-05-24 17:33:33 +00:00
shutil.py Patch #1490190: posixmodule now includes os.chflags() and os.lchflags() 2007-02-19 10:55:19 +00:00
site.py Fix docstring for add_package in site.py. 2007-05-19 18:09:26 +00:00
smtpd.py
smtplib.py remove use of non-existent SSLFakeSocket in apparently untested code 2007-08-31 19:03:31 +00:00
sndhdr.py
socket.py This contains a number of things: 2007-08-29 22:35:05 +00:00
sre.py Bug #1675967: re patterns pickled with older Python versions can 2007-03-21 20:07:56 +00:00
sre_compile.py Fix typo in comment 2007-07-06 04:13:39 +00:00
sre_constants.py
sre_parse.py Make sre's SubPattern objects accept slice objects like it already accepts 2006-12-19 08:17:50 +00:00
ssl.py Added docstrings to methods and functions. 2007-08-30 17:07:28 +00:00
stat.py Patch #1490190: posixmodule now includes os.chflags() and os.lchflags() 2007-02-19 10:55:19 +00:00
statvfs.py
string.py SF 1193128: Let str.translate(None) be an identity transformation 2007-04-12 04:10:00 +00:00
stringold.py Remove outdated references to the regsub module. 2004-12-07 07:55:07 +00:00
stringprep.py Avoid forward-declaring the methods array. 2006-03-10 11:20:04 +00:00
struct.py Typo fix 2006-07-30 16:41:30 +00:00
subprocess.py Applied patch 1669481, slightly modified: Support close_fds on Win32 2007-05-26 22:18:20 +00:00
sunau.py
sunaudio.py
symbol.py PEP 343 -- the with-statement. 2006-02-27 22:32:47 +00:00
symtable.py Get symtable to limp along, can run compiler/symbols.py. Not saying much, needs more work. 2005-11-25 03:14:00 +00:00
tabnanny.py Make tabnanny recognize IndentationErrors raised by tokenize. 2006-08-14 21:34:08 +00:00
tarfile.py TarFile.__init__() no longer fails if no name argument is passed and 2007-08-28 12:31:09 +00:00
telnetlib.py Added timout parameter to telnetlib.Telnet. Also created 2007-03-29 18:22:35 +00:00
tempfile.py Whitespace normalization. Ugh, we really need to do this more often. 2007-04-25 06:30:05 +00:00
textwrap.py Patch #1581073: add a flag to textwrap that prevents the dropping of 2007-03-13 18:15:41 +00:00
this.py
threading.py Add a hack (originally devised in a slightly different form by Thomas Wouters) 2007-08-20 15:18:04 +00:00
timeit.py Whitespace normalization. Ugh, we really need to do this more often. 2007-04-25 06:30:05 +00:00
toaiff.py
token.py
tokenize.py Add name to credits (for untokenize). 2006-12-02 02:00:39 +00:00
trace.py fix trace.py --ignore-dir 2007-02-11 18:24:37 +00:00
traceback.py Fix a bug in traceback.format_exception_only() that led to an error 2006-09-24 12:50:24 +00:00
tty.py
types.py Patch #1520294: Support for getset and member descriptors in types.py, 2006-07-27 23:43:15 +00:00
unittest.py Hashing simplification pointed out by Thomas Wouters. 2007-03-09 23:30:39 +00:00
urllib.py This contains a number of things: 2007-08-29 22:35:05 +00:00
urllib2.py Change socket.error to inherit from IOError rather than being a stand 2007-09-09 23:36:46 +00:00
urlparse.py Patch #624325: urlparse.urlparse() and urlparse.urlsplit() results 2006-04-01 22:14:43 +00:00
user.py
uu.py Jython compatibility fix: if uu.decode() opened its output file, be sure to 2006-11-20 13:39:37 +00:00
uuid.py uuid creation is now threadsafe, backport from py3k rev. 57375. 2007-08-24 06:10:01 +00:00
warnings.py Ignore ImportWarning by default 2006-07-06 13:35:27 +00:00
wave.py Patch #1681153: the wave module now closes a file object it opened if 2007-03-15 07:41:30 +00:00
weakref.py SF #1479988: add methods to allow access to weakrefs for the 2006-05-02 06:53:59 +00:00
webbrowser.py Fix a few webbrowser.py problems. 2007-07-01 08:11:35 +00:00
whichdb.py Replace list of constants with tuples of constants. 2005-02-06 06:57:08 +00:00
wsgiref.egg-info Sync w/external release 0.1.2. Please see PEP 360 before making changes to external packages. 2006-06-12 04:04:32 +00:00
xdrlib.py Move xdrlib tests from the module into a separate test script, 2006-12-01 16:59:47 +00:00
xmllib.py
xmlrpclib.py Patch #1070046: Marshal new-style objects like InstanceType 2006-11-19 18:51:54 +00:00
zipfile.py Patch #1675424: Added tests for uncovered code in the zipfile module. 2007-07-12 09:59:22 +00:00