cpython/Lib
Jeremy Hylton b476d59792 Add __enter__ and __exit__ methods to addbase() so that it supports with.
This change also adds a minimal unittest of urllib.response.addbase.
More are needed, but not to cover the small change being made here.

Addresses http://bugs.python.org/issue5418
2009-03-26 21:34:20 +00:00
..
ctypes Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from 2009-01-27 18:17:45 +00:00
curses Merged revisions 64623,64640,64665,64687,64689-64690,64719,64721,64735,64742,64744-64746,64756-64761,64767-64769,64771-64772,64774-64775,64788,64793,64835-64836 via svnmerge from 2008-07-16 03:43:04 +00:00
dbm dbm.dumb was opening files without specifying the encoding. Caused problem on 2008-11-24 21:09:58 +00:00
distutils Merged revisions 70342,70385-70387,70389-70390,70392-70393,70395,70400,70405-70406,70418,70438,70464,70468 via svnmerge from 2009-03-21 17:31:58 +00:00
email Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
encodings #1276: Add temporary encoding aliases for non-supported Mac CJK 2008-08-23 08:03:03 +00:00
html #2834: Change re module semantics, so that str and bytes mixing is forbidden, 2008-08-19 17:56:33 +00:00
http Merged revisions 70107 via svnmerge from 2009-03-02 22:50:25 +00:00
idlelib bump version to 3.1a1 2009-03-07 16:34:40 +00:00
importlib Document import's semantics for the language reference. This includes filling 2009-03-21 03:11:16 +00:00
json merge r66932 and add a few py3k only checks 2008-10-16 21:17:24 +00:00
lib2to3 Merged revisions 68288-68291,68325-68326,68338,68388,68393,68423 via svnmerge from 2009-01-09 03:03:23 +00:00
logging #5287: Add exception handling around findCaller() call to help out IronPython. 2009-02-19 12:36:11 +00:00
msilib long integer -> integer. 2007-11-29 18:48:53 +00:00
multiprocessing merge r68915 to py3k 2009-01-25 03:45:53 +00:00
plat-aix4
plat-atheos Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
plat-darwin These are present in the trunk but no longer in 3.x, which causes problems 2009-03-04 23:21:07 +00:00
plat-freebsd4
plat-freebsd5
plat-freebsd6 Merged revisions 58221-58741 via svnmerge from 2007-11-01 19:42:39 +00:00
plat-freebsd7 Merged revisions 58221-58741 via svnmerge from 2007-11-01 19:42:39 +00:00
plat-freebsd8 Merged revisions 58221-58741 via svnmerge from 2007-11-01 19:42:39 +00:00
plat-generic
plat-linux2
plat-netbsd1
plat-next3
plat-os2emx Merged revisions 62021,62029,62035-62038,62043-62044,62052-62053 via svnmerge from 2008-03-31 01:51:45 +00:00
plat-sunos5 Merged revisions 56492-56752 via svnmerge from 2007-08-05 15:29:28 +00:00
plat-unixware7 Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
site-packages
sqlite3 Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from 2009-01-27 18:17:45 +00:00
test Add __enter__ and __exit__ methods to addbase() so that it supports with. 2009-03-26 21:34:20 +00:00
tkinter Merged revisions 70223 via svnmerge from 2009-03-07 02:19:14 +00:00
urllib Add __enter__ and __exit__ methods to addbase() so that it supports with. 2009-03-26 21:34:20 +00:00
wsgiref Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
xml Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from 2009-01-27 18:17:45 +00:00
xmlrpc part of #3613: fix get_host_info() usage of base64.encodestring(). 2009-02-13 10:50:01 +00:00
__future__.py Merged revisions 61952-61953 via svnmerge from 2008-03-26 22:34:47 +00:00
__phello__.foo.py
_abcoll.py Give mapping views a usable repr. 2009-02-27 07:47:32 +00:00
_dummy_thread.py Merged revisions 65787 via svnmerge from 2008-08-17 22:31:15 +00:00
_markupbase.py Remove the htmllib and sgmllib modules as per PEP 3108. 2008-06-01 21:25:55 +00:00
_pyio.py officially deprecated max_buffer_size 2009-03-26 17:10:29 +00:00
_strptime.py #2834: Change re module semantics, so that str and bytes mixing is forbidden, 2008-08-19 17:56:33 +00:00
_threading_local.py Merged revisions 64125 via svnmerge from 2008-06-11 19:14:14 +00:00
_weakrefset.py Add a test suite for WeakSet mostly derived from test_set and fix some 2008-05-18 16:27:29 +00:00
abc.py Merged revisions 66144 via svnmerge from 2008-09-02 10:43:28 +00:00
aifc.py Remove cl usage from aifc and use bytes throughout. 2008-06-07 19:01:03 +00:00
antigravity.py Merged revisions 66887,66891,66902-66903,66905-66906,66911-66913,66922,66927-66928,66936,66939-66940,66962,66964,66973 via svnmerge from 2008-10-19 14:07:49 +00:00
ast.py Merged revisions 68450,68480-68481,68493,68495,68501,68512,68514-68515,68534-68536,68552,68563,68570-68572,68575,68582,68596,68623-68624,68628 via svnmerge from 2009-01-16 03:54:08 +00:00
asynchat.py Fixed bugs 760475, 953599, and 1519. This is a translation of changelist 64768 2008-07-07 05:04:12 +00:00
asyncore.py This fixes issue 4332 for Py3k. 2008-11-19 18:22:41 +00:00
base64.py #2834: Change re module semantics, so that str and bytes mixing is forbidden, 2008-08-19 17:56:33 +00:00
bdb.py Merged revisions 67750-67751 via svnmerge from 2008-12-14 11:50:48 +00:00
binhex.py Remove the Mac modules 2008-05-12 22:25:16 +00:00
bisect.py Merged revisions 64722,64729,64753,64845-64846,64849,64871,64880-64882,64885,64888,64897,64900-64901,64915,64926-64929,64938-64941,64944,64961,64966,64973 via svnmerge from 2008-07-16 12:55:28 +00:00
build_class.py
calendar.py #3059: Stop decoding Unicode in calendar module. 2008-06-08 08:40:05 +00:00
cgi.py Merged revisions 67528 via svnmerge from 2008-12-04 19:24:50 +00:00
cgitb.py Merged revisions 55795-55816 via svnmerge from 2007-06-07 23:15:56 +00:00
chunk.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
cmd.py Patch# 1258 by Christian Heimes: kill basestring. 2007-10-16 18:12:55 +00:00
code.py Fix issue #1707. When raw_input() was removed, it was incorrectly replaced 2008-01-02 02:55:27 +00:00
codecs.py Make TextIOWrapper's seek/tell work properly with stateful decoders; 2008-03-18 04:51:32 +00:00
codeop.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
collections.py Separate initialization from clearing. 2009-03-25 22:45:22 +00:00
colorsys.py Merged revisions 68884,68973,68978,69003,69083,69112-69113 via svnmerge from 2009-01-30 03:39:35 +00:00
compileall.py Merged revisions 69481 via svnmerge from 2009-02-10 02:10:16 +00:00
configparser.py Fix bootstrapping problem where setup.py was using configparser 2009-03-03 01:32:48 +00:00
contextlib.py Merged revisions 62425-62429,62434-62436,62441,62444,62446-62448,62450-62455,62463,62465-62466,62469,62474,62476-62478,62480,62485,62492,62497-62498,62500,62507,62513-62514,62516,62521,62531,62535,62545-62546,62548-62551,62553-62559,62569,62574,62577,62593,62595,62604-62606,62608,62616,62626-62627,62636,62638,62644-62645,62647-62648,62651-62653,62656,62661,62663,62680,62686-62687,62696,62699-62703,62711 via svnmerge from 2008-05-04 22:42:01 +00:00
copy.py Rename the repr module to reprlib. 2008-05-16 07:12:44 +00:00
copyreg.py Rename copy_reg module to copyreg. 2008-05-11 08:55:36 +00:00
cProfile.py Patch# 1258 by Christian Heimes: kill basestring. 2007-10-16 18:12:55 +00:00
csv.py Merged revisions 65795 via svnmerge from 2008-08-18 00:51:19 +00:00
decimal.py Merged revisions 70444 via svnmerge from 2009-03-18 08:25:36 +00:00
difflib.py Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
dis.py Merged revisions 68116-68119,68121,68123-68127 via svnmerge from 2009-01-01 15:05:06 +00:00
doctest.py Issue 5021: doctest.testfile should set __name__ 2009-01-27 10:06:09 +00:00
dummy_threading.py Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875. 2008-05-25 13:05:15 +00:00
filecmp.py Merged revisions 70342,70385-70387,70389-70390,70392-70393,70395,70400,70405-70406,70418,70438,70464,70468 via svnmerge from 2009-03-21 17:31:58 +00:00
fileinput.py Patch 1341 by Amaury Forgeot d'Arc. 2007-10-29 17:39:59 +00:00
fnmatch.py Change fnmatch.py to use separate caches for str and bytes keys. 2008-10-03 16:38:30 +00:00
formatter.py Fix formatter usage of filter(). Bug #3800. 2008-09-09 19:31:25 +00:00
fractions.py Manually merge r68096,68189 from 3.0 branch. 2009-01-03 22:07:57 +00:00
ftplib.py #3911 FTP.makeport was giving bad port numbers 2008-09-27 22:04:16 +00:00
functools.py
genericpath.py Issue #3187: Better support for "undecodable" filenames. Code by Victor 2008-10-02 18:55:37 +00:00
getopt.py Merged revisions 67463,67572,67576,67628 via svnmerge from 2008-12-07 15:15:22 +00:00
getpass.py Merged revisions 62425-62429,62434-62436,62441,62444,62446-62448,62450-62455,62463,62465-62466,62469,62474,62476-62478,62480,62485,62492,62497-62498,62500,62507,62513-62514,62516,62521,62531,62535,62545-62546,62548-62551,62553-62559,62569,62574,62577,62593,62595,62604-62606,62608,62616,62626-62627,62636,62638,62644-62645,62647-62648,62651-62653,62656,62661,62663,62680,62686-62687,62696,62699-62703,62711 via svnmerge from 2008-05-04 22:42:01 +00:00
gettext.py Make gettext Unicode interface consistent and clean up the docs. 2008-07-17 18:15:35 +00:00
glob.py Issue #3187: Better support for "undecodable" filenames. Code by Victor 2008-10-02 18:55:37 +00:00
gzip.py Merged revisions 68484-68485 via svnmerge from 2009-01-10 16:22:51 +00:00
hashlib.py issue3715: docstring representation of hex escaped string needs to be double 2008-08-31 16:35:01 +00:00
heapq.py In Py3.x, a list comprehension is now faster than list(map(itemgetter(0), iterable)). 2009-02-21 23:20:57 +00:00
hmac.py Fixed failing unit tests due to str/bytes mismatch. 2008-03-03 02:59:49 +00:00
imaplib.py Issue #1210: Fixed imaplib 2008-11-05 19:39:50 +00:00
imghdr.py Merged revisions 65713 via svnmerge from 2008-08-16 16:48:16 +00:00
inspect.py Merged revisions 68633,68648,68667,68706,68718,68720-68721,68724-68727,68739 via svnmerge from 2009-01-18 22:27:04 +00:00
io.py simplify and beautify code 2009-03-06 23:59:29 +00:00
keyword.py Merged revisions 60151-60159,60161-60168,60170,60172-60173,60175 via svnmerge from 2008-01-21 20:36:10 +00:00
linecache.py reuse tokenize.detect_encoding in linecache instead of a custom solution 2009-03-24 22:30:15 +00:00
locale.py svnmerge from trunk for r70457 (sorry, I accidentally deleted the commit message) 2009-03-18 20:26:42 +00:00
macpath.py Issue3187 for Macintosh platform: 2008-10-03 21:57:20 +00:00
macurl2path.py Make a new urllib package . 2008-06-18 20:49:58 +00:00
mailbox.py Merged revisions 65459,65472,65481,65518,65536,65581,65609,65637,65641,65644-65645 via svnmerge from 2008-08-12 08:35:52 +00:00
mailcap.py
mimetypes.py Merged revisions 69998-69999,70002,70022-70023,70025-70026,70061,70086,70145,70171,70183,70188,70235,70244,70275,70281 via svnmerge from 2009-03-09 21:04:33 +00:00
modulefinder.py no 2.3 compat in the py3k lib #3676 2009-02-16 16:20:10 +00:00
netrc.py Patch # 1331 by Christian Heimes. 2007-10-26 04:29:23 +00:00
nntplib.py Issue #3714: nntplib module broken by str to unicode conversion 2008-11-05 19:44:21 +00:00
ntpath.py Issue3187 again: test_ntpath failed when run with the -bb option 2008-10-03 20:32:33 +00:00
nturl2path.py follow-up of r64385: rename urllib.quote in nturl2path 2008-06-18 22:38:24 +00:00
numbers.py Issue 4998: restore utility of __slots__ on Fraction. 2009-02-12 17:58:36 +00:00
opcode.py http://bugs.python.org/issue4715 2009-02-25 02:25:04 +00:00
optparse.py Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
os2emxpath.py Remove os.path.walk 2008-05-08 23:44:58 +00:00
os.py fix None errno #5312 2009-02-20 03:19:25 +00:00
pdb.doc Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from 2008-05-16 00:03:33 +00:00
pdb.py Merged revisions 67750-67751 via svnmerge from 2008-12-14 11:50:48 +00:00
pickle.py Issue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with the 2009-01-20 20:43:58 +00:00
pickletools.py Merged revisions 68903,68906 via svnmerge from 2009-01-24 21:46:33 +00:00
pipes.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
pkgutil.py no 2.3 compat in the py3k lib #3676 2009-02-16 16:20:10 +00:00
platform.py Merged revisions 66974,66977,66984,66989,66992,66994-66996,66998-67000,67007,67015 via svnmerge from 2008-10-25 15:49:17 +00:00
plistlib.py #2834: Change re module semantics, so that str and bytes mixing is forbidden, 2008-08-19 17:56:33 +00:00
poplib.py Fixed issue #3727: poplib module broken by str to unicode conversion 2008-11-05 19:48:27 +00:00
posixpath.py Merged revisions 68884,68973,68978,69003,69083,69112-69113 via svnmerge from 2009-01-30 03:39:35 +00:00
pprint.py Merged revisions 63119-63128,63130-63131,63133,63135-63144,63146-63148,63151-63152,63155-63165,63167-63176,63181-63186,63188-63189 via svnmerge from 2008-05-16 02:54:33 +00:00
profile.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
pstats.py Issue #1771: Remove cmp parameter from list.sort() and builtin.sorted(). 2008-01-30 20:15:17 +00:00
pty.py Issue #3782: os.write() must not accept unicode strings 2008-09-15 23:02:56 +00:00
py_compile.py #2834: Change re module semantics, so that str and bytes mixing is forbidden, 2008-08-19 17:56:33 +00:00
pyclbr.py Merged revisions 62425-62429,62434-62436,62441,62444,62446-62448,62450-62455,62463,62465-62466,62469,62474,62476-62478,62480,62485,62492,62497-62498,62500,62507,62513-62514,62516,62521,62531,62535,62545-62546,62548-62551,62553-62559,62569,62574,62577,62593,62595,62604-62606,62608,62616,62626-62627,62636,62638,62644-62645,62647-62648,62651-62653,62656,62661,62663,62680,62686-62687,62696,62699-62703,62711 via svnmerge from 2008-05-04 22:42:01 +00:00
pydoc_topics.py Bump to 3.0rc3 2008-11-21 01:18:21 +00:00
pydoc.py Revert unintended part of r69948. Pydoc was not supposed to change. 2009-02-24 23:41:47 +00:00
queue.py port the queue change r70405 2009-03-21 17:36:10 +00:00
quopri.py Patch 1329 (partial) by Christian Heimes. 2007-10-30 17:27:30 +00:00
random.py Use ABCs to validate documented restriction to Sets or Sequences. 2009-02-24 11:27:15 +00:00
re.py Merged revisions 70090 via svnmerge from 2009-03-02 05:21:55 +00:00
reprlib.py Rename the repr module file to reprlib.py. 2008-05-16 16:05:36 +00:00
rlcompleter.py Merged revisions 65168 via svnmerge from 2008-07-21 16:32:10 +00:00
runpy.py Merged revisions 69419-69420 via svnmerge from 2009-02-08 01:58:26 +00:00
sched.py Merged revisions 63066-63076,63079,63081-63085,63087-63097,63099,63101-63104 via svnmerge from 2008-05-16 00:41:41 +00:00
shelve.py The default shelve pickle protocol should have been 3. 2009-02-03 04:19:10 +00:00
shlex.py Patch# 1258 by Christian Heimes: kill basestring. 2007-10-16 18:12:55 +00:00
shutil.py Merged revisions 69415,69591,69593 via svnmerge from 2009-02-20 04:09:19 +00:00
site.py Merged revisions 62954-62959,62961,62963-62967,62969-62970,62972-62973,62975-62976,62978-62982,62984,62987-62996 via svnmerge from 2008-05-15 22:51:26 +00:00
smtpd.py Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
smtplib.py Merged revisions 68547,68607,68610,68618,68621-68622,68649,68722 via svnmerge from 2009-01-18 21:02:37 +00:00
sndhdr.py Improved patches for sndhdr and imghdr by Victor Stinner, who writes: 2007-08-13 17:50:00 +00:00
socket.py Fixes issue #3826 and #4791: 2009-01-12 04:50:11 +00:00
socketserver.py Merged revisions 69803-69805,69840,69901,69905,69907,69924,69927,69987 via svnmerge from 2009-02-26 03:38:59 +00:00
sre_compile.py Merged revisions 66894 via svnmerge from 2008-10-14 23:07:40 +00:00
sre_constants.py #2834: Change re module semantics, so that str and bytes mixing is forbidden, 2008-08-19 17:56:33 +00:00
sre_parse.py Merged revisions 66894 via svnmerge from 2008-10-14 23:07:40 +00:00
ssl.py fix name usage 2008-12-31 04:10:35 +00:00
stat.py Merged revisions 61644,61646-61647,61649-61652,61656-61658,61663,61665,61667 via svnmerge from 2008-03-20 10:49:03 +00:00
string.py #4361: fix string.py docstring, clarify that only ASCII characters are in its constants. 2008-11-22 08:31:09 +00:00
stringprep.py
struct.py Merged revisions 59696-59702 via svnmerge from 2008-01-04 03:08:33 +00:00
subprocess.py Merged revisions 70137 via svnmerge from 2009-03-03 22:41:26 +00:00
sunau.py #3567: fix sunau for running with -bb and make test_ossaudiodev work. 2008-08-17 00:38:32 +00:00
symbol.py Regenerate Lib/symbol.py. 2007-08-31 07:58:27 +00:00
symtable.py revert 65897 2008-08-20 12:55:31 +00:00
tabnanny.py
tarfile.py Merged revisions 70523 via svnmerge from 2009-03-22 20:34:29 +00:00
telnetlib.py Victor Stinner's patch to make telnetlib use bytes 3725 2008-10-15 20:54:24 +00:00
tempfile.py Fixed test_tempfile. 2008-06-12 01:13:54 +00:00
textwrap.py Issue #4163: textwrap module: allow word splitting on a hyphen preceded by a non-ASCII letter. 2008-12-13 23:20:54 +00:00
this.py
threading.py Issue #874900: fix behaviour of threading module after a fork. 2008-09-06 23:00:03 +00:00
timeit.py Patch# 1258 by Christian Heimes: kill basestring. 2007-10-16 18:12:55 +00:00
token.py Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61061-61064,61066-61080 via svnmerge from 2008-02-26 08:18:30 +00:00
tokenize.py reuse tokenize.detect_encoding in linecache instead of a custom solution 2009-03-24 22:30:15 +00:00
trace.py The trace module was trying to turn ints into ints since co_lnotab was changed 2009-01-30 01:31:34 +00:00
traceback.py Remove unnecessary import 2008-12-07 22:42:03 +00:00
tty.py
turtle.py Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
types.py Merged revisions 62194,62197-62198,62204-62205,62214,62219-62221,62227,62229-62231,62233-62235,62237-62239 via svnmerge from 2008-04-09 08:37:03 +00:00
unittest.py Merged revisions 70574 via svnmerge from 2009-03-24 01:33:55 +00:00
uu.py Patch# 1258 by Christian Heimes: kill basestring. 2007-10-16 18:12:55 +00:00
uuid.py Merged revisions 67295,67301-67302,67318,67330,67342-67343 via svnmerge from 2008-11-22 22:18:04 +00:00
warnings.py forward port r66386 2008-10-16 23:24:44 +00:00
wave.py #1535: rename __builtin__ module to builtins. 2007-12-02 09:40:06 +00:00
weakref.py Fix a circular import dependency. 2009-03-25 23:31:22 +00:00
webbrowser.py simplify imports 2008-12-10 06:02:39 +00:00
wsgiref.egg-info
xdrlib.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
zipfile.py Merged revisions 68885 via svnmerge from 2009-01-24 14:10:07 +00:00