cpython/Lib
Éric Araujo 2e0a0e1640 Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884).
These regex changes fix a number of issues for distutils on Windows:
- #6884: impossible to include a file starting with 'build'
- #9691 and #14004: sdist includes too many files
- #13193: test_filelist failures

This commit replaces the incorrect changes done in 0a94e2f807c7 and
90b30d62caf2 to fix #13193; we were too eager to fix the test failures
and I did not study the code enough before greenlighting patches.  This
time we have unit tests from the problems reported by users to be sure
we have the right fix.

Thanks to Nadeem Vawda for his help.
2012-02-25 16:28:05 +01:00
..
concurrent Issue #12364: Fix a hang in concurrent.futures.ProcessPoolExecutor. 2012-01-08 08:29:40 +02:00
ctypes Issue #13979: Fix ctypes.util.find_library ldconfig regex 2012-02-13 22:08:39 -06:00
curses Fix curses module for strict SysV implementation (without has_key function) 2011-11-29 00:03:50 +01:00
dbm Close #13007: whichdb should recognize gdbm 1.9 magic numbers 2011-09-19 17:08:18 +02:00
distutils Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). 2012-02-25 16:28:05 +01:00
email Fix few typos. 2011-11-11 19:35:42 +01:00
encodings Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
html HTMLParser is now able to handle slashes in the start tag. 2012-02-21 09:25:00 +02:00
http Minor code style improvements in http.server suggested in Issue13294. 2011-12-23 17:03:41 +08:00
idlelib Bump version to 3.2.3rc1. 2012-02-23 21:14:12 +01:00
importlib Port import fixes from 2.7. 2012-01-25 18:01:45 +01:00
json Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) 2012-02-20 21:31:46 +01:00
lib2to3 Fix use of deprecated assertRegexpMatches method. 2012-02-20 22:08:27 +01:00
logging Fix added for recent changes in non-threading environments. 2012-02-23 20:49:08 +00:00
msilib Remove duplication. 2011-10-19 10:58:56 +03:00
multiprocessing Issue #8184: Fix a potential file descriptor leak when a 2012-02-04 14:55:53 +01:00
plat-aix4
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 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-freebsd5 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-freebsd6 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-freebsd7 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-freebsd8 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-generic
plat-linux2
plat-netbsd1
plat-next3
plat-os2emx Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-sunos5 Merged revisions 78678,78680,78682 via svnmerge from 2010-03-05 03:33:11 +00:00
plat-unixware7
pydoc_data Update pydoc topics. 2012-02-23 21:12:41 +01:00
site-packages
sqlite3 sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures 2012-02-21 13:49:50 +02:00
test Fix (presumably) test_hash under big-endian systems (PPC). 2012-02-22 03:33:56 +01:00
tkinter Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) 2012-02-20 21:31:46 +01:00
turtledemo #12677: correct turtle orientation in doc 2011-08-07 17:12:19 +02:00
unittest testFnNames is assigned twice. 2011-11-25 02:08:39 +08:00
urllib Fix Issue6631 - Disallow relative file paths in urllib urlopen 2012-01-21 11:52:48 +08:00
wsgiref Merged revisions 87797 via svnmerge from 2011-01-06 17:18:32 +00:00
xml #4147: minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg. 2011-11-18 17:34:26 +02:00
xmlrpc Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer 2012-02-18 14:53:41 +01:00
__future__.py barry has already been causing test breakage 2009-04-01 20:38:13 +00:00
__phello__.foo.py
_abcoll.py Remove the function annotations from _abcoll.py 2011-01-12 20:46:15 +00:00
_compat_pickle.py Issue #6137: The pickle module now translates module names when loading 2009-06-04 20:32:06 +00:00
_dummy_thread.py Fix bootstrap issues when building without threads 2010-11-05 19:58:28 +00:00
_markupbase.py #13576: add tests about the handling of (possibly broken) condcoms. 2011-12-19 07:29:03 +02:00
_pyio.py Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is 2011-11-21 20:16:44 +01:00
_strptime.py PEP 8 conformance: class_ -> cls 2010-07-14 13:46:57 +00:00
_threading_local.py Issue #9707: Rewritten reference implementation of threading.local which 2010-09-07 22:06:17 +00:00
_weakrefset.py Merged revisions 86537,86867-86868,86881,86887,86913-86915,86931-86933,86960,86964,86974,86980,86996,87008,87050 via svnmerge from 2011-02-25 09:48:21 +00:00
abc.py add support for abstract class and static methods #5867 2010-08-17 00:52:52 +00:00
aifc.py Issue #13589: Fix some serialization primitives in the aifc module. 2012-01-17 17:13:04 +01:00
antigravity.py Another hidden treasure. 2009-06-03 17:21:17 +00:00
argparse.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
ast.py Add missing types to docstring of ast.literal_eval. 2011-04-17 19:10:27 +02: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 Merge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. 2011-07-14 19:57:35 +02:00
base64.py #1466065: add validate option to base64.b64decode 2010-11-11 20:09:20 +00:00
bdb.py Issue #10492: bdb.Bdb.run() only traces the execution of the code 2011-01-06 00:49:38 +00:00
binhex.py Close #11577: Improve binhex test coverage and fix ResourceWarning 2011-03-16 21:26:40 -04:00
bisect.py Per the language summit, the optional fastpath imports should use from-import-star. 2009-03-31 17:51:51 +00:00
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 3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and 2011-10-20 01:05:44 +08:00
cgitb.py Merged revisions 70980,71059,71225,71234,71241,71243,71249,71251,71255,71266,71299,71329,71397-71398,71486 via svnmerge from 2009-04-11 19:48:14 +00:00
chunk.py
cmd.py Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop 2011-12-06 20:46:57 +01:00
code.py Merged revisions 75264,75268,75293,75318,75391-75392,75436,75478,75971,76003,76058,76140-76141,76231,76380,76428-76429 via svnmerge from 2009-11-25 17:46:26 +00:00
codecs.py #7475: add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2. 2010-12-02 18:06:51 +00:00
codeop.py Merged revisions 75472 via svnmerge from 2009-10-18 00:34:08 +00:00
collections.py Issue 13870: Fix out of date comment. 2012-01-26 00:14:16 -08: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 #10454: a few edits to compileall help messages 2011-09-01 20:00:33 +02:00
configparser.py Remove duplication. 2011-10-19 10:58:56 +03:00
contextlib.py Remove trailing whitespace 2011-05-06 00:02:12 +10:00
copy.py Merged revisions 84495-84497 via svnmerge from 2010-09-04 17:49:13 +00:00
copyreg.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
cProfile.py Merged revisions 82805-82806,83523-83527,83536,83538,83542,83546-83548,83550-83555,83558,83560 via svnmerge from 2010-10-06 08:26:09 +00:00
csv.py #11565: Merge with 3.1. 2011-03-16 11:35:38 +02:00
datetime.py Remove duplication. 2011-10-19 10:58:56 +03:00
decimal.py Issue #11830: Remove unnecessary introspection code in the decimal module. 2011-04-12 23:03:39 -04:00
difflib.py Issue 11747: Fix output format for context diffs. 2011-04-12 15:19:33 -07:00
dis.py As per python-dev discussion with Eli, properly document and publish dis.show_code 2010-09-10 14:08:04 +00:00
doctest.py Followup to #7502: add __hash__ method and tests. 2011-12-18 20:20:17 +01: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 Issue 11802: filecmp cache was growing without bound. 2011-06-25 17:20:21 +02:00
fileinput.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
fnmatch.py Re-apply r83871. 2010-08-13 16:26:40 +00:00
formatter.py Fix formatter usage of filter(). Bug #3800. 2008-09-09 19:31:25 +00:00
fractions.py Make Fraction(-1).__hash__() return -2 rather than -1 (see issue 10356). 2010-11-13 10:27:38 +00:00
ftplib.py Issue #10883: Fix socket leaks in urllib.request. 2011-07-23 14:03:00 +02:00
functools.py Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache. 2011-10-15 23:50:42 -07:00
genericpath.py Merged revisions 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from 2010-03-14 10:23:39 +00:00
getopt.py remove pointless coding cookies 2010-08-30 14:05:50 +00: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 Issue #13989: Document that GzipFile does not support text mode. 2012-02-11 23:45:10 +02:00
hashlib.py fix whitespace 2011-05-14 15:35:19 -07:00
heapq.py Issue 13274: Make the pure python code for heapq more closely match the C implementation for an undefined corner case. 2011-10-30 14:32:54 -07:00
hmac.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
imaplib.py Fix few typos. 2011-11-11 19:35:42 +01:00
imghdr.py Merged revisions 65713 via svnmerge from 2008-08-16 16:48:16 +00:00
inspect.py Metaclasses with metaclasses with a __dict__ descriptor can no longer trigger code execution with inspect.getattr_static. 2011-12-22 01:13:37 +00:00
io.py add myself 2009-05-01 20:45:43 +00:00
keyword.py Fix instructions on how to rebuild some modules 2011-11-29 16:45:34 +01:00
linecache.py Issue #10335: Add tokenize.open(), detect the file encoding using 2010-11-09 01:08:59 +00:00
locale.py Fix last remaining references to ex-devguide 2011-11-29 16:36:17 +01:00
macpath.py Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X 2010-09-13 19:41:36 +00:00
macurl2path.py Fixing Issue6711 - macurl2path has typos that raise AttributeError 2009-08-16 06:44:28 +00:00
mailbox.py Fix Maildir initialization so that maildir contents are read correctly. 2011-11-05 09:44:59 +02:00
mailcap.py Merged revisions 80368-80369 via svnmerge from 2010-04-22 13:56:42 +00:00
mimetypes.py Issue #13025: mimetypes is now reading MIME types using the UTF-8 encoding, 2011-10-14 03:03:35 +02:00
modulefinder.py merge 11164 2011-05-09 08:10:38 +02:00
netrc.py fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
nntplib.py Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode. 2012-02-14 23:29:34 +01: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 Fix incorrect docstring I changed a while back. 2011-11-03 04:34:09 +01:00
opcode.py #4617: Previously it was illegal to delete a name from the local 2010-09-10 21:39:53 +00:00
optparse.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
os.py Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) 2012-02-20 21:31:46 +01:00
os2emxpath.py #9018: os.path.normcase() now raises a TypeError if the argument is not str or bytes. 2010-06-25 10:56:11 +00:00
pdb.py Add display/undisplay pdb commands. 2010-12-04 16:21:42 +00:00
pickle.py Issue #13505: Make pickling of bytes object compatible with Python 2. 2011-12-13 13:08:09 -05:00
pickletools.py Issue #13505: Make pickling of bytes object compatible with Python 2. 2011-12-13 13:08:09 -05:00
pipes.py Remove obsolete comment 2011-09-01 22:06:23 +02:00
pkgutil.py Issue #7367: Fix pkgutil.walk_paths to skip directories whose 2011-10-06 14:19:08 -07:00
platform.py Add a hint that CSD == Service Pack. 2012-02-01 15:14:00 -06:00
plistlib.py Issue #985064: Make plistlib more resilient to faulty input plists. 2011-05-28 03:02:30 -07:00
poplib.py fix issue #8807: adds a context parameter to POP3_SSL class. 2010-08-17 16:09:53 +00:00
posixpath.py Merged revisions 85689 via svnmerge from 2010-10-18 13:49:09 +00:00
pprint.py Have pprint() respect the order in an OrderedDict. 2010-09-09 12:31:00 +00:00
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 Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF. 2012-02-16 00:29:12 -08:00
py_compile.py Issue #12618: py_compile cannot create files in current directory 2011-11-28 09:27:32 -06:00
pyclbr.py Issue 11020: command-line pyclbr broken due to missing 2-to-3 conversion. 2011-01-27 00:12:08 +00:00
pydoc.py Issue #1785: Fix inspect and pydoc with misbehaving descriptors. 2011-12-21 09:57:40 +01:00
queue.py Issue 10110: Let Queue.put recognize a full queue when the maxsize parameter has been reduced. 2010-10-31 17:57:52 +00:00
quopri.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
random.py Fix #13384. Remove __future__ import in 3.x code. 2011-11-11 09:37:25 -06:00
re.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
reprlib.py Fix typo. 2011-01-23 21:33:36 +00:00
rlcompleter.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
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 #7905: Actually respect the keyencoding parameter to shelve.Shelf. 2010-12-04 11:12:43 +00:00
shlex.py Merged revisions 85861 via svnmerge from 2010-10-27 18:54:06 +00:00
shutil.py Really make bztar support in shutil conditional. 2012-02-05 13:40:08 +01:00
site.py Merged revisions 87497 via svnmerge from 2010-12-26 22:24:54 +00:00
smtpd.py Issue #9168: now smtpd is able to bind privileged port. 2011-10-20 23:03:43 +02:00
smtplib.py #12448: smtplib now flushes stdout while running `python -m smtplib` 2011-10-18 13:20:07 +03:00
sndhdr.py Merged revisions 82856-82857 via svnmerge from 2010-07-13 23:19:20 +00:00
socket.py Merged revisions 88622 via svnmerge from 2011-02-25 23:14:08 +00:00
socketserver.py Closes #13140: Fix the daemon_threads attribute of ThreadingMixIn. 2011-11-04 10:16:28 +01:00
sre_compile.py Issue #8990: array.fromstring() and array.tostring() get renamed to 2010-09-01 20:29:34 +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 78729 via svnmerge from 2010-03-06 15:27:04 +00:00
ssl.py Issue #13636: Weak ciphers are now disabled by default in the ssl module 2012-01-03 22:46:48 +01:00
stat.py Issue #8746: Correct faulty configure checks so that os.chflags() and 2011-06-28 00:00:28 -07:00
string.py #9418: first step of moving private string methods to _string module. 2010-10-14 07:04:07 +00:00
stringprep.py
struct.py Issue #11081: Fixed struct.__all__. Reviewed by Georg Brandl. 2011-01-31 19:27:55 +00:00
subprocess.py Issue #12650: Fix a race condition where a subprocess.Popen could leak 2011-08-18 18:49:39 +02:00
sunau.py Issue #10265: Close file objects explicitly in sunau. Patch by Brian Brazil. 2010-10-31 21:27:04 +00:00
symbol.py Fix instructions on how to rebuild some modules 2011-11-29 16:45:34 +01:00
symtable.py simplify this expression 2009-06-28 19:30:36 +00:00
sysconfig.py And yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 05:04:49 +01:00
tabnanny.py #1513299: cleanup some map() uses where a comprehension works better. 2010-12-04 10:39:14 +00:00
tarfile.py Issue #12926: Fix a bug in tarfile's link extraction. 2012-01-05 18:48:06 +01:00
telnetlib.py Merged revisions 87230 via svnmerge from 2010-12-14 14:27:27 +00:00
tempfile.py Issue #12856: Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module. 2011-11-25 21:28:15 +01:00
textwrap.py 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 22:32:49 +08:00
this.py
threading.py remove unused import 2012-02-03 19:07:30 -05:00
timeit.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
token.py Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames indexes. 2012-01-15 19:15:36 -06:00
tokenize.py Merged revisions 88498 via svnmerge from 2011-02-22 03:35:18 +00:00
trace.py Prevent deprecation warning 2011-04-17 16:48:52 +02:00
traceback.py Merged revisions 76573 via svnmerge from 2009-11-28 16:16:09 +00:00
tty.py
turtle.py Issue #13439: Fix many errors in turtle docstrings. 2011-12-02 21:24:14 +02:00
types.py
uu.py Merged revisions 86037 via svnmerge from 2010-10-31 16:06:55 +00:00
uuid.py Merged revisions 86192 via svnmerge from 2010-11-05 14:52:43 +00:00
warnings.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
wave.py Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8 2010-12-28 13:26:42 +00:00
weakref.py Use booleans. 2010-12-03 07:49:09 +00:00
webbrowser.py #12601: fix typo. 2011-07-21 11:16:32 +03:00
wsgiref.egg-info
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