cpython/Lib
Jeremy Hylton b4c17c8992 Fix getcomments() so that it doesn't fail with TypeErrors.
It appears that getcomments() can get called for classes defined in
C.  Since these don't have source code, it can't do anything useful.
A function buried many levels deep was raising a TypeError that was
not caught.

Who knows why this broke...
2002-03-28 23:01:56 +00:00
..
compiler Patch #522279: transformer.py nodes shadows global. 2002-02-28 17:48:48 +00:00
curses Patch #521670: Remove unused sys import. 2002-02-23 22:31:53 +00:00
distutils Revert part of previous patch: several install_* subcommands expect 2002-03-22 15:35:17 +00:00
email Removed two unused imports. Closes patch #525225. 2002-03-03 22:46:46 +00:00
encodings Corrected import behaviour for codecs which live outside the encodings 2002-02-11 17:43:46 +00:00
hotshot Set/update self.cwd properly. 2002-03-12 14:26:37 +00:00
idlelib further work on new config system; 2002-03-27 08:40:46 +00:00
lib-old
lib-tk Reindent. 2002-03-28 16:26:40 +00:00
plat-aix3
plat-aix4
plat-beos5
plat-freebsd2
plat-freebsd3
plat-freebsd4
plat-freebsd5
plat-generic
plat-irix5
plat-irix6 Regenerated for Irix 6.5. 2002-03-17 21:49:20 +00:00
plat-linux1
plat-linux2 Regenerated for Linux 2.2.4. 2001-12-22 15:23:50 +00:00
plat-netbsd1
plat-next3
plat-os2emx Create and populate OS/2 EMX port platform specific library directory: 2002-02-22 11:06:30 +00:00
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
plat-unixware7
site-packages
test test_trashcan: reword obscure code. 2002-03-28 21:22:25 +00:00
xml [Apply patch #500457 from the PyXML tracker] 2002-03-20 23:56:34 +00:00
__future__.py
__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 dump the string exception fallback for anydbm.error. 2002-03-18 03:07:20 +00:00
asynchat.py A faster version of the find_prefix_at_end() function (that I found in the 2002-03-20 02:22:58 +00:00
asyncore.py Remove duplicate "import os" 2002-03-14 23:48:18 +00:00
atexit.py
audiodev.py
base64.py
BaseHTTPServer.py Patch #430706: Persistent connections in BaseHTTPServer. 2002-03-17 18:37:22 +00:00
Bastion.py
bdb.py canonic(): Fix by Edward K Ream to make breakpoints work better on 2002-02-25 23:23:24 +00:00
binhex.py
bisect.py
calendar.py SF bug 533234: tm_isdst > 1 Passed to strftime. 2002-03-23 03:26:53 +00:00
cgi.py tighten up except - only ValueError can be raised in this situation 2002-03-23 05:50:17 +00:00
CGIHTTPServer.py tighten up except - int() only raises ValueError 2002-03-23 05:47:31 +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 tighten up except - in this context, AttributeError is the only exception 2002-03-24 16:34:21 +00:00
code.py make default banner match what the real interpreter displays 2002-03-25 22:04:23 +00:00
codecs.py Set default value for readlines.sizehint to None. Change needed for 2.2.1 2002-03-05 15:46:38 +00:00
codeop.py
colorsys.py
commands.py
compileall.py Patch #495598: add an -q (quiet) option to pycompile. 2002-03-18 12:44:08 +00:00
ConfigParser.py [Bug #523301] ConfigParser.write() produces broken output for values that 2002-03-08 18:08:47 +00:00
Cookie.py
copy.py SF patch 518765 (Derek Harland): Bug in copy.py when used through 2002-02-28 23:19:52 +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 Change raw "except:" constructs to pass on KeyboardInterrupt. 2002-03-20 19:32:03 +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
FCNTL.py
filecmp.py
fileinput.py Implement iterator protocol. 2002-03-26 20:28:40 +00:00
fnmatch.py
formatter.py
fpformat.py
ftplib.py Access the exception argument to see whether it starts with '500'. 2002-03-10 15:59:58 +00:00
getopt.py Wrapped a long line. 2001-12-12 06:20:34 +00:00
getpass.py
gettext.py Add a per-message fallback mechanism for translations. 2002-01-11 06:58:49 +00:00
glob.py
gopherlib.py The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. 2002-02-16 23:06:19 +00:00
gzip.py Make GzipFile an iterator. Closes bug #532621. 2002-03-20 18:36:00 +00:00
hmac.py Whitespace normalization. 2001-11-13 21:51:26 +00:00
htmlentitydefs.py
htmllib.py
HTMLParser.py Convert to using string methods instead of the string module. 2001-12-03 17:09:50 +00:00
httplib.py oops - export InvalidURL in __all__ 2002-03-24 16:56:45 +00:00
ihooks.py
imaplib.py fixed missing IMAP4_SSL_PORT 2002-03-08 09:05:12 +00:00
imghdr.py
imputil.py SF #515012, cleanup: remove unused variable 2002-02-11 18:01:32 +00:00
inspect.py Fix getcomments() so that it doesn't fail with TypeErrors. 2002-03-28 23:01:56 +00:00
keyword.py
knee.py
linecache.py
locale.py eliminate unqualified except when checking for presence of LC_MESSAGES 2002-03-25 21:40:36 +00:00
macpath.py SF bug [#469732] os.path.walk docstring inconsistent. 2001-10-10 04:16:20 +00:00
macurl2path.py
mailbox.py Try /var/mail before trying /usr/mail. Most new systems use /var. 2002-03-24 01:38:38 +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 os was already imported in the module, no need to re-import 2002-03-26 16:21:52 +00:00
mimetypes.py Separate the script portion from the library portion; everything that 2001-12-05 15:58:29 +00:00
MimeWriter.py
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 [Bug #532115] netrc module was broken 2002-03-22 02:46:41 +00:00
nntplib.py The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. 2002-02-16 23:06:19 +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
os.py .... 2002-03-15 10:21:59 +00:00
os2emxpath.py OS/2 EMX port Library and regression test changes: 2002-02-24 05:32:32 +00:00
pdb.doc
pdb.py
pickle.py Fix for SF 502085. 2002-03-26 00:51:56 +00:00
pipes.py
popen2.py tighten up except - os.close only raises OSError 2002-03-24 20:48:26 +00:00
poplib.py The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. 2002-02-16 23:06:19 +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 Quote href properly. 2002-03-24 23:11:21 +00:00
Queue.py
quopri.py import statements only raise ImportError, right? 2002-03-23 05:55:18 +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
reconvert.py
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 Add namespace selection for rlcompleter. Closes SF patch 490026. 2002-03-23 23:44:51 +00:00
robotparser.py Correctly set default entry in all cases. 2002-03-18 10:43:18 +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
SimpleHTTPServer.py Patch #430706: Persistent connections in BaseHTTPServer. 2002-03-17 18:37:22 +00:00
SimpleXMLRPCServer.py _dispatch(): Do no re-define the resolve_dotted_atttribute() function 2001-09-29 04:54:33 +00:00
site.py OS/2 EMX port Library and regression test changes: 2002-02-24 05:32:32 +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 __init__(): We'll try to be more RFC 2821 compliant by providing for a 2002-03-26 20:27:35 +00:00
sndhdr.py
socket.py Repair so that importing socket doesn't blow up on platforms that lack 2002-02-17 04:25:24 +00:00
SocketServer.py Apply the first chunk of the second patch from SF bug #471720: 2001-10-23 21:42:45 +00:00
sre.py added finditer sanity check 2001-10-28 20:15:40 +00:00
sre_compile.py
sre_constants.py
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
StringIO.py SF #515000, print result of f.tell() in test() instead of ignoring 2002-02-11 17:52:18 +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
tabnanny.py
telnetlib.py The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. 2002-02-16 23:06:19 +00:00
tempfile.py If possible, set FD_CLOEXEC flag on file descriptors opened using 2002-03-24 22:21:48 +00:00
TERMIOS.py
this.py Whitespace cleanup. 2002-02-08 20:41:34 +00:00
threading.py SF #515023. Make _DummyThread.join() signature match base class (Thread) 2002-02-19 03:01:36 +00:00
toaiff.py
token.py
tokenize.py Cleanup x so it is not left in module 2002-03-26 16:20:26 +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 time and socket were already imported in the module, no need to re-import 2002-03-26 16:25:01 +00:00
urllib2.py Patch #525870: Avoid duplicate stat calls, use st_ attributes. 2002-03-18 08:37:19 +00:00
urlparse.py amk's fix attached to 2002-03-18 13:06:00 +00:00
user.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
uu.py
warnings.py [Apply SF patch #504943] 2002-03-21 10:38:40 +00:00
wave.py
weakref.py WeakKeyDictionary.has_key(): If the key being tested is not weakly 2001-11-06 16:36:53 +00:00
webbrowser.py If no webbrowsers were found _tryorder would be empty, cmd would never be set and the "del cmd" would fail. Fixed. 2002-03-15 13:47:32 +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 re was already imported in the module, no need to re-import 2002-03-26 16:23:28 +00:00
zipfile.py SF bug #488514: -Qnew needs work 2001-12-06 06:23:26 +00:00