cpython/Lib
Andrew M. Kuchling eca4c31267 [Apply length-checking.diff from bug #1599254]
Add length checking to single-file mailbox formats: before doing a
flush() on a mailbox, seek to the end and verify its length is
unchanged, raising ExternalClashError if the file's length has
changed.

This fix avoids potential data loss if some other process appends to
the mailbox file after the table of contents has been generated;
instead of overwriting the modified file, you'll get the exception.

I also noticed that the self._lookup() call in self.flush() wasn't
necessary (everything that sets self._pending to True also calls
self.lookup()), and replaced it by an assertion.

2.5 backport candidate.
2006-12-20 19:48:20 +00:00
..
bsddb Oops, convert tabs to spaces 2006-11-21 05:51:51 +00:00
compiler Remove trailing comma. 2006-10-29 09:01:01 +00:00
ctypes Fix a bad assumption that all objects assigned to '__loader__' on a module 2006-12-06 23:38:48 +00:00
curses
distutils - Fix build failure on kfreebsd and on the hurd. 2006-12-03 17:16:41 +00:00
email decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to 2006-10-04 02:06:36 +00:00
encodings Change decode() so that it works with a buffer (i.e. unicode(..., 'utf-8-sig')) 2006-11-23 05:03:56 +00:00
hotshot
idlelib 1. Avoid hang when encountering a duplicate in a completion list. Bug 1571112. 2006-12-15 05:13:11 +00:00
lib-tk Patch #1472877: Fix Tix subwidget name resolution. 2006-11-18 18:42:11 +00:00
logging Patch by "cuppatea" (SF #1503765) 2006-12-11 14:26:23 +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-freebsd2
plat-freebsd3
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-generic
plat-irix5
plat-irix6
plat-linux2
plat-mac with and as are now keywords. There are some generated files I can't recreate. 2006-09-06 06:28:06 +00:00
plat-netbsd1
plat-next3
plat-os2emx
plat-riscos
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 The sqlite3 module did cut off data from the SQLite database at the first null 2006-07-02 17:48:30 +00:00
test Testcase for patch #1484695. 2006-12-20 11:55:16 +00:00
wsgiref
xml expunge the xmlcore changes: 2006-07-29 16:56:15 +00:00
BaseHTTPServer.py
Bastion.py
CGIHTTPServer.py
ConfigParser.py Patch #1371075: Make ConfigParser accept optional dict type 2006-12-03 12:01:53 +00:00
Cookie.py Whitespace normalization. 2006-08-15 00:25:04 +00:00
DocXMLRPCServer.py
HTMLParser.py
MimeWriter.py
Queue.py ... and the number of the counting shall be three. 2006-11-23 21:35:19 +00:00
SimpleHTTPServer.py
SimpleXMLRPCServer.py [Bug #1525469] SimpleXMLRPCServer still uses the sys.exc_{value,type} module-level globals instead of calling sys.exc_info(). Reported by Russell Warren 2006-09-05 13:15:41 +00:00
SocketServer.py
StringIO.py
UserDict.py
UserList.py
UserString.py
_LWPCookieJar.py
_MozillaCookieJar.py
__future__.py
__phello__.foo.py
_strptime.py Make the error message for when the time data and format do not match clearer. 2006-09-26 23:38:24 +00:00
_threading_local.py
aifc.py
anydbm.py
asynchat.py
asyncore.py
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
binhex.py Patch #1220874: Update the binhex module for Mach-O. 2006-07-15 16:53:15 +00:00
bisect.py
cProfile.py
calendar.py
cgi.py Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes 2006-09-30 10:58:01 +00:00
cgitb.py
chunk.py
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
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
compileall.py
contextlib.py
cookielib.py [Patch #1587139 by kxroberto] Protect lock acquisition/release with 2006-12-19 15:43:10 +00:00
copy.py
copy_reg.py
csv.py
dbhash.py
decimal.py Add missing word in comment 2006-09-02 18:51:34 +00:00
difflib.py
dircache.py
dis.py
doctest.py Fix a couple of typos. 2006-08-29 05:40:58 +00:00
dumbdbm.py
dummy_thread.py
dummy_threading.py
filecmp.py
fileinput.py
fnmatch.py
formatter.py
fpformat.py
ftplib.py Patch #1359217: Ignore 2xx response before 150 response. 2006-11-12 18:48:13 +00:00
functools.py [Bug #1576241] Let functools.wraps work with built-in functions 2006-10-27 16:39:10 +00:00
genericpath.py Add missing svn:eol-style property to text files. 2006-09-05 02:22:17 +00:00
getopt.py
getpass.py
gettext.py
glob.py
gopherlib.py
gzip.py Patch #1355023: support whence argument for GzipFile.seek. 2006-11-12 10:41:39 +00:00
hashlib.py Bug #1586773: extend hashlib docstring. 2006-10-29 18:01:08 +00:00
heapq.py
hmac.py [Patch #1618455 by Ben Maurer] Improve speed of HMAC by using str.translate() 2006-12-19 14:13:05 +00:00
htmlentitydefs.py
htmllib.py
httplib.py Patch #1065257: Support passing open files as body in 2006-11-12 10:32:47 +00:00
ihooks.py
imaplib.py
imghdr.py
imputil.py
inspect.py Bug #1550524: better heuristics to find correct class definition 2006-10-12 09:20:33 +00:00
keyword.py
linecache.py
locale.py
macpath.py - Move functions common to all path modules into genericpath.py and have the 2006-08-26 18:42:06 +00:00
macurl2path.py
mailbox.py [Apply length-checking.diff from bug #1599254] 2006-12-20 19:48:20 +00:00
mailcap.py
markupbase.py
md5.py
mhlib.py
mimetools.py
mimetypes.py
mimify.py
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
ntpath.py - Move functions common to all path modules into genericpath.py and have the 2006-08-26 18:42:06 +00:00
nturl2path.py
opcode.py
optparse.py Resync optparse with Optik 1.5.3: minor tweaks for/to tests. 2006-07-23 16:05:51 +00:00
os.py Move errno imports back to individual functions. 2006-12-11 07:56: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
pdb.py [Bug #1526834] Fix crash in pdb when you do 'b f('; 2006-09-05 13:19:18 +00:00
pickle.py
pickletools.py
pipes.py
pkgutil.py Bug #1529871: The speed enhancement patch #921466 broke Python's compliance 2006-07-28 21:12:07 +00:00
platform.py
popen2.py Fix check for empty list (vs. None). 2006-07-21 17:36:31 +00:00
poplib.py
posixfile.py
posixpath.py Bug #1560179: speed up posixpath.(dir|base)name 2006-10-12 13:08:16 +00:00
pprint.py
profile.py
pstats.py Bug #1603321: make pstats.Stats accept Unicode file paths. 2006-11-26 19:27:47 +00:00
pty.py Patch #838546: Make terminal become controlling in pty.fork(). 2006-11-09 11:06:03 +00:00
py_compile.py
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 #1600491 from Jim Jewett] Describe how to build help files on Windows 2006-12-19 15:18:12 +00:00
quopri.py
random.py Bug #1590891: random.randrange don't return correct value for big number 2006-12-20 06:42:06 +00:00
re.py
repr.py
rexec.py
rfc822.py
rlcompleter.py
robotparser.py
runpy.py Revert the __module_name__ changes made in rev 47142. We'll revisit this in Python 2.6 2006-07-06 12:53:04 +00:00
sched.py
sets.py
sgmllib.py Forward port of 51850 from release25-maint branch. 2006-09-11 04:24:09 +00:00
sha.py
shelve.py
shlex.py
shutil.py Don't copy directory stat times in shutil.copytree on Windows 2006-07-30 13:00:31 +00:00
site.py Patch #1540892: site.py Quitter() class attempts to close sys.stdin 2006-08-16 05:01:42 +00:00
smtpd.py
smtplib.py Whitespace normalization. 2006-11-03 02:32:46 +00:00
sndhdr.py
socket.py Bug #978833: Really close underlying socket in _socketobject.close. 2006-07-26 12:12:56 +00:00
sre.py
sre_compile.py
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
stat.py
statvfs.py
string.py Cookie.py shouldn't "bogusly" use string._idmap. 2006-08-14 22:01:24 +00:00
stringold.py
stringprep.py
struct.py Typo fix 2006-07-30 16:41:30 +00:00
subprocess.py Bug #1357915: allow all sequence types for shell arguments in 2006-10-29 09:05:04 +00:00
sunau.py
sunaudio.py
symbol.py
symtable.py
tabnanny.py Make tabnanny recognize IndentationErrors raised by tokenize. 2006-08-14 21:34:08 +00:00
tarfile.py Testcase for patch #1484695. 2006-12-20 11:55:16 +00:00
telnetlib.py Patch #825417: Fix timeout processing in expect, 2006-07-03 13:01:35 +00:00
tempfile.py
textwrap.py
this.py
threading.py
timeit.py
toaiff.py
token.py
tokenize.py Add name to credits (for untokenize). 2006-12-02 02:00:39 +00:00
trace.py Patch #1536071: trace.py should now find the full module name of a 2006-08-14 21:55:28 +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
urllib.py [Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPS 2006-12-19 15:11:41 +00:00
urllib2.py [Patch #1574068 by Scott Dial] urllib and urllib2 were using 2006-10-27 17:11:23 +00:00
urlparse.py
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 Bug #1541863: uuid.uuid1 failed to generate unique identifiers 2006-08-18 03:47:18 +00:00
warnings.py Ignore ImportWarning by default 2006-07-06 13:35:27 +00:00
wave.py
weakref.py
webbrowser.py Bug #1565661: in webbrowser, split() the command for the default 2006-09-30 07:31:57 +00:00
whichdb.py
wsgiref.egg-info
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 ZipFile.close(): Kill the other struct.pack deprecation 2006-07-31 02:53:03 +00:00