cpython/Lib
Éric Araujo f89ebdc358 Fix missing imports in setup scripts generated by packaging (#13205).
I’ve made more edits than the bug report suggested to make sure the
generated setup script is compatible with many Python versions; a
comment in the source explains that in detail.

The cfg_to_args function uses old 2.x idioms like codecs.open and
RawConfigParser.readfp because I want the setup.py generated by packaging and
distutils2 to be the same.  Most users won’t see the deprecation warning and I
ignore it in the test suite.

Thanks to David Barnett for the report and original patch.
2011-10-21 06:27:06 +02:00
..
collections #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). 2011-09-28 17:37:55 +03:00
concurrent Close the call queue in concurrent.futures.ProcessPoolExecutor when 2011-07-16 23:52:02 +02:00
ctypes Issue #12881: ctypes: Fix segfault with large structure field names. 2011-10-03 21:48:30 -05:00
curses merge from 3.2 - Fix closes Issue11439 Remove the SVN keywords from the code as it is no longer applicable in hg. Patch Contributed by Neil Muller. 2011-07-28 23:39:08 +08:00
dbm Close #13007: whichdb should recognize gdbm 1.9 magic numbers 2011-09-19 17:08:18 +02:00
distutils normalize whitespace in Lib/distutils/msvc9compiler.py 2011-10-17 11:36:49 +11:00
email #665194: support roundtripping RFC2822 date stamps in the email.utils module 2011-07-20 11:41:21 -04:00
encodings
html Fix issue12938 - Update the docstring of html.escape. Include the information on single quote. 2011-09-13 07:14:13 +08:00
http Merge with 3.2. 2011-10-19 11:06:26 +03:00
idlelib Fix a few ResourceWarnings in idle 2011-10-03 20:33:24 +02:00
importlib Issue #13146: Writing a pyc file is now atomic under POSIX. 2011-10-17 19:28:44 +02:00
json Implement PEP 393. 2011-09-28 07:41:54 +02:00
lib2to3 - Re-enable lib2to3's test_parser.py tests, though with an expected failure 2011-10-07 15:26:54 -04:00
logging Issue #12780: Merged fix from 3.2. 2011-08-19 07:15:45 +01:00
msilib Remove duplication. 2011-10-19 10:58:56 +03:00
multiprocessing Merge with 3.2. 2011-10-19 11:06:26 +03:00
packaging Fix missing imports in setup scripts generated by packaging (#13205). 2011-10-21 06:27:06 +02:00
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-linux Close #12326: sys.platform is now always 'linux' on Linux 2011-08-20 23:39:26 +02:00
plat-netbsd1
plat-next3
plat-os2emx
plat-sunos5
plat-unixware7
pydoc_data Regenerate pydoc topics. 2011-09-03 10:37:09 +02:00
site-packages
sqlite3 Issue #10811: Use TestCase.assertRaises() in the new test 2011-05-09 12:50:41 +02:00
test default - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated 2011-10-20 01:52:41 +08:00
tkinter Merge with 3.2. 2011-10-19 11:06:26 +03:00
turtledemo #12677: correct turtle orientation in doc 2011-08-07 17:12:19 +02:00
unittest #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). 2011-09-28 17:37:55 +03:00
urllib urllib.request - syntax changes enhancing readability. By Éric Araujo 2011-10-20 02:50:13 +08:00
wsgiref
xml merge #4147: minidom's toprettyxml no longer adds whitespace to text nodes. 2011-10-01 16:22:35 -04:00
xmlrpc #11565: Merge with 3.1. 2011-03-16 11:35:38 +02:00
__future__.py
__phello__.foo.py
_compat_pickle.py
_dummy_thread.py Issue #11223: Replace threading._info() by sys.thread_info 2011-04-30 14:53:09 +02:00
_markupbase.py
_pyio.py PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy. 2011-10-12 02:54:14 +02:00
_strptime.py
_threading_local.py
_weakrefset.py
abc.py
aifc.py
antigravity.py
argparse.py #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). 2011-09-28 17:37:55 +03:00
ast.py remove ast.__version__ (closes #12273) 2011-07-15 21:10:13 -05:00
asynchat.py
asyncore.py Merge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. 2011-07-14 20:00:49 +02:00
base64.py
bdb.py
binhex.py remove unused imports (closes #12432) 2011-06-28 10:25:04 -05:00
bisect.py
bz2.py BZ2File now uses the compresslevel argument given by the caller, 2011-09-11 22:38:11 +02:00
cProfile.py
calendar.py Fix closes Issue10087 - fixing the output of calendar display in the html format. Patch by Chris Lambacher. Test Contributed by catherine. 2011-08-11 09:22:52 +08:00
cgi.py default - Fix closes Issue12529 - cgi.parse_header failure on double quotes and 2011-10-20 01:06:59 +08:00
cgitb.py remove unused imports (closes #12432) 2011-06-28 10:25:04 -05:00
chunk.py
cmd.py
code.py
codecs.py #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). 2011-09-28 17:37:55 +03:00
codeop.py
colorsys.py
compileall.py #10454: a few edits to compileall help messages 2011-09-01 20:00:33 +02:00
configparser.py Merge with 3.2. 2011-10-19 11:06:26 +03:00
contextlib.py remove unused imports (closes #12432) 2011-06-28 10:25:04 -05:00
copy.py #11572: improvements to copy module tests along with removal of old test suite 2011-08-05 23:05:35 +02:00
copyreg.py
crypt.py
csv.py #11565: Merge with 3.1. 2011-03-16 11:35:38 +02:00
datetime.py Merge with 3.2. 2011-10-19 11:06:26 +03:00
decimal.py Issue #12080: Fix a performance issue in Decimal._power_exact that causes some corner-case Decimal.__pow__ calls to take an unreasonably long time. 2011-06-04 18:14:23 +01:00
difflib.py #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). 2011-09-28 17:37:55 +03:00
dis.py
doctest.py #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). 2011-09-28 17:37:55 +03:00
dummy_threading.py
filecmp.py Issue 11802: filecmp cache was growing without bound. 2011-06-25 17:20:21 +02:00
fileinput.py
fnmatch.py
formatter.py
fractions.py
ftplib.py Merge: #10883: Fix socket leaks in urllib.request. 2011-07-23 14:25:45 +02:00
functools.py Merge 2011-10-16 00:00:51 -07:00
genericpath.py
getopt.py Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9) 2011-03-21 16:04:06 +01:00
getpass.py Fix for issue11236 getpass.getpass to respond ctrl-c or ctrl-z 2011-04-26 20:59:46 +08:00
gettext.py #11515: Merge with 3.1. 2011-03-15 05:59:46 +02:00
glob.py Fix closes issue12432 - remove the unused sys from glob.py 2011-07-03 17:21:05 -07:00
gzip.py Remove dead code in gzip. 2011-04-13 18:57:40 +02:00
hashlib.py fix whitespace 2011-05-14 15:35:56 -07:00
heapq.py Merge 3.1 2011-04-20 19:24:09 +02:00
hmac.py
imaplib.py Issue #1441530: In imaplib, read the data in one chunk to speed up large 2011-05-24 23:47:49 +02:00
imghdr.py
inspect.py remove unused imports (closes #12432) 2011-06-28 10:25:04 -05:00
io.py
keyword.py
linecache.py
locale.py (merge) Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8" instead of "UTF8" 2011-05-17 13:03:54 +02:00
macpath.py
macurl2path.py
mailbox.py Close #12454: The mailbox module is now using ASCII, instead of the locale 2011-10-17 20:44:22 +02:00
mailcap.py Fix #9923: mailcap now uses the OS path separator for the MAILCAP envvar. Not backported, since it could break cases where people worked around the old POSIX-specific behaviour on non-POSIX platforms. 2011-08-28 00:17:31 +10:00
mimetypes.py (Merge 3.2) Issue #13025: mimetypes is now reading MIME types using the UTF-8 2011-10-14 03:05:10 +02:00
modulefinder.py Fix bug I unwittingly added in 1521d9837d16 (found by Ezio Melotti) 2011-08-01 15:29:07 +02:00
netrc.py fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
nntplib.py #11515: Merge with 3.1. 2011-03-15 05:59:46 +02:00
ntpath.py Correction to 88e318166eaf - Issue #11583 2011-06-09 09:10:38 -05:00
nturl2path.py Fix Issue11474 - fix url2pathname() handling of '/C|/' on Windows 2011-04-14 13:16:30 +08:00
numbers.py
opcode.py excise the remains of STOP_CODE, which hasn't done anything useful for years 2011-07-17 22:49:50 -05:00
optparse.py Merge #8158: add missing 'description' description to optparse docstring. 2011-05-04 21:08:07 -04:00
os.py Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates 2011-03-19 17:04:13 +01:00
os2emxpath.py
pdb.py
pickle.py Issue #7689: Allow pickling of dynamically created classes when their 2011-10-04 09:25:28 +02:00
pickletools.py #11565: Merge with 3.1. 2011-03-16 11:35:38 +02:00
pipes.py Merge doc changes from 3.2 (#10454, #12298) 2011-09-02 00:03:20 +02:00
pkgutil.py merge from 3.2 2011-10-06 14:24:31 -07:00
platform.py Make platform.libc_ver() less slow 2011-10-07 13:26:59 +02:00
plistlib.py Issue #12452: Plist and Dict are now deprecated 2011-07-04 14:28:45 +02:00
poplib.py
posixpath.py
pprint.py
profile.py strip trailing ws 2011-06-27 09:18:46 -05:00
pstats.py Merge profile docs followup (#12417) from 3.1 2011-07-28 23:00:14 +02:00
pty.py
py_compile.py
pyclbr.py
pydoc.py Merge 3.2 2011-09-12 17:41:24 +02:00
queue.py
quopri.py
random.py Code simplification suggested by Sven Marnach. 2011-06-25 11:31:46 +02:00
re.py #2650: re.escape() no longer escapes the "_". 2011-04-10 12:59:16 +03:00
reprlib.py Avoid pulling threading when _thread is sufficient 2011-10-11 18:51:53 +02:00
rlcompleter.py
runpy.py Issue #12451: runpy: run_path() now opens the Python script in binary mode, 2011-07-04 01:45:39 +02:00
sched.py Remove duplication. 2011-10-19 10:58:56 +03:00
shelve.py
shlex.py #9723: refactor regex. 2011-08-16 19:03:41 +03:00
shutil.py A few style changes originally done in the distutils2 repo 2011-09-18 23:12:30 +02:00
site.py Replace open(filename, 'rU') by open(filename, 'r') 2011-05-04 13:55:36 +02:00
smtpd.py
smtplib.py #12448: merge with 3.2. 2011-10-18 13:26:49 +03:00
sndhdr.py
socket.py Issue #11127: Raise a TypeError when trying to pickle a socket object. 2011-03-20 23:56:36 +01:00
socketserver.py Fix closes issue #11109 - socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass. 2011-05-26 00:22:59 +08:00
sre_compile.py #13054: fix usage of sys.maxunicode after PEP-393. 2011-10-04 19:06:00 +03:00
sre_constants.py
sre_parse.py
ssl.py Fix #12835: prevent use of the unencrypted sendmsg/recvmsg APIs on SSL wrapped sockets (Patch by David Watson) 2011-08-28 00:00:27 +10:00
stat.py Issue #8746: Correct faulty configure checks so that os.chflags() and 2011-06-28 00:00:28 -07:00
string.py #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). 2011-09-28 17:37:55 +03:00
stringprep.py
struct.py
subprocess.py Issue #12494: Close pipes and kill process on error in subprocess functions 2011-09-01 23:45:04 +02:00
sunau.py
symbol.py
symtable.py
sysconfig.cfg Remove inline comment, no longer supported by configparser. 2011-10-05 01:14:02 +02:00
sysconfig.py Issue #13150: sysconfig no longer parses the Makefile and config.h files 2011-10-18 17:52:24 +02:00
tabnanny.py Fix #12811 by closing files promptly in tabnanny.check. Patch by Anthony Briggs. 2011-08-22 16:19:19 +10:00
tarfile.py Merge with 3.2: Issue #13158: Fix decoding and encoding of base-256 number fields in tarfile. 2011-10-14 12:53:10 +02:00
telnetlib.py Merged revisions 87230 via svnmerge from 2010-12-14 14:27:27 +00:00
tempfile.py Issue #12464: tempfile.TemporaryDirectory.cleanup() should not follow symlinks: 2011-07-29 19:00:38 +02:00
textwrap.py merge from 3.2 - Fix closes Issue11439 Remove the SVN keywords from the code as it is no longer applicable in hg. Patch Contributed by Neil Muller. 2011-07-28 23:39:08 +08:00
this.py
threading.py Merge with 3.2. 2011-10-19 11:06:26 +03:00
timeit.py Issue 12514: Use try/finally to assure that timeit restores GC when done. 2011-07-29 00:08:19 -07:00
token.py
tokenize.py Issue #13150: The tokenize module doesn't compile large regular expressions at startup anymore. 2011-10-11 15:45:56 +02:00
trace.py Prevent deprecation warning 2011-04-17 16:48:52 +02:00
traceback.py
tty.py
turtle.py Merge with 3.2. 2011-10-19 11:06:26 +03:00
types.py
uu.py
uuid.py
warnings.py
wave.py
weakref.py
webbrowser.py #12601: fix typo. 2011-07-21 11:16:32 +03:00
xdrlib.py Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer. 2011-03-27 16:25:40 +01:00
zipfile.py 3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated 2011-10-20 01:46:00 +08:00