cpython/Lib
Jeremy Hylton 2a05bc72d6 Partial fix for problem in SF buf #487458
Rev 1.20 introduced a call to getpeername() in the dispatcher
constructor.  This only works for a connected socket.  Apparently
earlier versions of the code worked with un-connected sockets, e.g. a
listening socket.

It's not clear that the code is supposed to accept these sockets,
because it sets self.connected = 1 when passed a socket.  But it's
also not clear that it should be a fatal error to pass a listening
socket.

The solution, for now, is to put a try/except around the getpeername()
call and continue if it fails.  The self.addr attribute is used
primarily (only?) to produce a nice repr for the object, so it hardly
matters.  If there is a real error on a connected socket, it's likely
that subsequent calls will fail too.
2001-12-14 16:15:11 +00:00
..
compiler Fix [ #484645 ] little bug in pycodegen.py 2001-11-27 23:35:10 +00:00
curses
distutils Joe VanAndel wrote: 2001-12-11 20:44:42 +00:00
email decode(), encode(): Accepting the minor optimizations from SF patch 2001-12-03 19:26:40 +00:00
encodings Patch #487275: Add windows-1251 charset alias. 2001-12-02 12:24:19 +00:00
hotshot Update to reflect changes to the low-level logreader: share the info 2001-10-29 20:57:23 +00:00
idlelib changes to use new tabpages classes 2001-12-05 07:54:07 +00:00
lib-old
lib-tk Make tix_configure() work the same way configure() works for the basic 2001-12-13 04:53:07 +00:00
plat-aix3
plat-aix4
plat-beos5
plat-freebsd2
plat-freebsd3
plat-freebsd4
plat-freebsd5
plat-generic
plat-irix5
plat-irix6
plat-linux1
plat-linux2
plat-netbsd1
plat-next3
plat-riscos SF patch #474590 -- RISC OS support 2001-10-24 20:42:55 +00:00
plat-sunos4
plat-sunos5
plat-unixware7
site-packages
test (Merge into trunk.) 2001-12-14 04:19:56 +00:00
xml Attribute nodes did not always get their ownerDocument and ownerElement 2001-12-06 18:27:48 +00:00
BaseHTTPServer.py
Bastion.py
CGIHTTPServer.py Fix two typos, one noted by Noah Spurrier in SF bug #475166, the 2001-10-26 03:38:46 +00:00
ConfigParser.py Whitespace normalization. 2001-10-18 21:57:37 +00:00
Cookie.py
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 StringIO patch #462596: let's [c]StringIO accept read buffers on 2001-09-24 17:34:52 +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
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
base64.py The first batch of changes recommended by the fixdiv tool. These are 2001-09-04 19:14:14 +00:00
bdb.py canonic(): don't use abspath() for filenames looking like <...>; this 2001-11-29 02:50:15 +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 "ib" should be "boundary"; reported by Neal Norwitz. 2001-10-13 18:38:53 +00:00
cgitb.py Add "file" argument to Hook constructor. 2001-12-04 18:45:17 +00:00
chunk.py
cmd.py
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 Add complex to the dispatch tables, to avoid going through the whole 2001-09-28 18:16:13 +00:00
copy_reg.py _reduce(): 2001-11-24 21:04:31 +00:00
dbhash.py
difflib.py Whitespace normalization. 2001-10-04 05:36:56 +00:00
dircache.py
dis.py Add opcodes for floor division and true division (PEP 238) 2001-08-29 18:02:21 +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 Honor the mode argument to dumbdbm.open(); there is not good reason not to, 2001-12-07 21:54:46 +00:00
filecmp.py
fileinput.py SF patch #474590 -- RISC OS support 2001-10-24 20:42:55 +00:00
fnmatch.py
formatter.py
fpformat.py
ftplib.py Oops. Catching OverflowError from int() doesn't help, since it raises 2001-10-17 17:21:47 +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
glob.py
gopherlib.py
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 Somebody checked in a version of httplib that doesn't even compile -- 2001-10-11 18:15:51 +00:00
ihooks.py
imaplib.py Whitespace normalization. 2001-10-30 05:56:40 +00:00
imghdr.py
imputil.py Added docstring by Neal Norwitz. This closes SF bug #450979. 2001-09-04 18:39:45 +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
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
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 SF bug 478425: Change in os.path.join (ntpath.py) 2001-11-05 21:25:02 +00:00
nturl2path.py
os.py Whitespace normalization. 2001-10-30 05:56:40 +00:00
pdb.doc
pdb.py
pickle.py Two changes: 2001-11-15 23:42:58 +00:00
pipes.py
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 Fix for bug #481221, getaddrlist() failing on long addresses. 2001-11-13 21:30:37 +00:00
rlcompleter.py
robotparser.py
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 patch #474590 -- RISC OS support 2001-10-24 20:42:55 +00:00
smtpd.py Two bug fixes for problems reported by Sverre: 2001-11-04 03:04:25 +00:00
smtplib.py SMTPError should be SMTPException; reported by Neal Norwitz. 2001-10-13 18:35:32 +00:00
sndhdr.py
socket.py Add 'sendall' to list of socket methods. 2001-10-29 07:13:53 +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 bug #133283, #477728, #483789, #490573 2001-12-09 16:13:15 +00:00
stat.py
statcache.py
statvfs.py
string.py
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
tabnanny.py
telnetlib.py Only close sockets if they have been created. Reported by Blake Winton. 2001-10-07 08:53:32 +00:00
tempfile.py SF bug #476138: tempfile behavior across platforms 2001-10-29 21:46:08 +00:00
threading.py Whitespace normalization. 2001-09-18 02:26:39 +00:00
toaiff.py
token.py
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 In unconditional except clauses, don't catch KeyboardInterrupt -- it's 2001-12-07 03:39:34 +00:00
urllib.py SF patch #490515 (Joe A) urllib.open_https() protocol issue 2001-12-08 17:09:07 +00:00
urllib2.py Fix SF bug 468948 & 451295: urllib2 authentication problems 2001-11-09 16:46:51 +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 Address SF patch #485789 (Stefan Schwarzer). 2001-12-04 17:43:22 +00:00
whichdb.py SF patch #474590 -- RISC OS support 2001-10-24 20:42:55 +00:00
whrandom.py
xdrlib.py
xmllib.py
xmlrpclib.py test for int and long int overflow (allows operation on 64-bit platforms) 2001-10-17 22:53:33 +00:00
zipfile.py SF bug #488514: -Qnew needs work 2001-12-06 06:23:26 +00:00