cpython/Lib
Éric Araujo 021eddfff6 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 557a973709de,
c566a3447ba1 and 3925081a7ca0 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:13:53 +01:00
..
bsddb Merged revisions 86596 via svnmerge from 2010-11-21 13:34:58 +00:00
compiler Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
ctypes Issue #13979: Fix ctypes.util.find_library ldconfig regex 2012-02-13 22:22:06 -06:00
curses Issue #5622: Fix curses.wrapper to raise correct exception if curses 2011-03-09 02:31:55 -08:00
distutils Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). 2012-02-25 16:13:53 +01:00
email #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 12:34:31 +02:00
encodings Merged revisions 83198 via svnmerge from 2010-07-28 01:55:43 +00:00
hotshot Fix deprecation warnings in test_hotshot.py 2010-08-03 07:03:40 +00:00
idlelib bump to 2.7.3rc2 2012-03-15 12:25:54 -05:00
importlib Fix some more bugs caused by the backport from 3.x for importlib. 2009-03-04 01:00:53 +00:00
json don't rely on dict order 2012-02-20 23:06:22 -05:00
lib-tk don't rely on dict order 2012-02-21 00:15:10 -05:00
lib2to3 re.escape os.sep so that \ is interpreted properly in the regex. 2012-02-13 16:45:47 -08:00
logging Closes #13807: Now checks for sys.stderr being there before writing to it. 2012-01-20 11:20:12 +00:00
msilib Remove duplication. 2011-10-19 10:39:35 +03:00
multiprocessing Issue #8184: Fix a potential file descriptor leak when a 2012-02-04 14:40:25 +01:00
plat-aix3
plat-aix4
plat-atheos set svn:executable on all regen scripts 2010-03-04 02:07:55 +00:00
plat-beos5
plat-darwin
plat-freebsd4 set svn:executable on all regen scripts 2010-03-04 02:07:55 +00:00
plat-freebsd5 set svn:executable on all regen scripts 2010-03-04 02:07:55 +00:00
plat-freebsd6 set svn:executable on all regen scripts 2010-03-04 02:07:55 +00:00
plat-freebsd7 set svn:executable on all regen scripts 2010-03-04 02:07:55 +00:00
plat-freebsd8 set svn:executable on all regen scripts 2010-03-04 02:07:55 +00:00
plat-generic
plat-irix5 remove executable property from doc files 2010-03-11 21:50:45 +00:00
plat-irix6 Merged revisions 77593,77702-77703,77858,77887,78113-78115,78117,78245,78385-78386,78496,78760,78771-78773,78802 via svnmerge from 2010-03-21 19:29:04 +00:00
plat-linux2
plat-mac Issue #12935: Correct typo in findertools. 2011-09-15 14:07:31 -07:00
plat-netbsd1
plat-next3
plat-os2emx set svn:executable on all regen scripts 2010-03-04 02:07:55 +00:00
plat-riscos
plat-sunos5 remove the svn:executable property from files that don't have shebang lines 2010-03-05 03:20:06 +00:00
plat-unixware7
pydoc_data update pydoc-topics 2012-02-23 15:18:13 -05:00
site-packages
sqlite3 sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures 2012-02-21 14:04:46 +02:00
test Fix sporadic test_os failure under Windows 2012-02-22 22:16:25 +01:00
unittest this can be done without a custom dict (also fixes #12544) 2011-07-12 19:21:42 -05:00
wsgiref Merged revisions 87797 via svnmerge from 2011-01-06 17:19:05 +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:30:28 +02:00
BaseHTTPServer.py port to 2.7 - Minor code style improvements in http.server suggested in Issue13294. 2011-12-23 17:07:13 +08:00
Bastion.py Deprecate Bastion and rexec for 3.0. 2008-05-10 02:27:04 +00:00
CGIHTTPServer.py Merged revisions 86195 via svnmerge from 2010-11-05 15:12:47 +00:00
ConfigParser.py Fixes #4686. Reverts redundant picklability code from r74544. 2012-01-23 17:30:53 +01:00
Cookie.py Merged revisions 87550 via svnmerge from 2010-12-28 19:11:03 +00:00
DocXMLRPCServer.py http://bugs.python.org/issue6267 2009-06-28 21:04:17 +00:00
HTMLParser.py HTMLParser is now able to handle slashes in the start tag. 2012-02-21 09:22:16 +02:00
MimeWriter.py
Queue.py Move the previously local import of threading to module level. 2009-03-15 22:11:07 +00:00
SimpleHTTPServer.py merge from 2.5 branch. 2011-03-17 14:23:24 +08:00
SimpleXMLRPCServer.py Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer 2012-02-18 14:30:34 +01:00
SocketServer.py Issue #13140: Fix the daemon_threads attribute of ThreadingMixIn. 2011-11-04 10:15:57 +01:00
StringIO.py raise an ValueError in getvalue() on closed StringIO (closes #12161) 2011-05-26 09:56:41 -05:00
UserDict.py keep UserDict an old-style class 2010-06-22 18:09:02 +00:00
UserList.py Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
UserString.py Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
_LWPCookieJar.py
_MozillaCookieJar.py Merged revisions 83392,83426 via svnmerge from 2010-08-01 22:05:31 +00:00
__future__.py Patch #2477: Added from __future__ import unicode_literals 2008-03-26 22:01:37 +00:00
__phello__.foo.py
_abcoll.py Merged revisions 86857 via svnmerge from 2010-11-30 01:18:17 +00:00
_pyio.py Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is 2011-11-21 20:16:44 +01:00
_strptime.py add %f format to datetime - issue 1158 2008-03-15 16:04:45 +00:00
_threading_local.py Merged revisions 84344 via svnmerge from 2010-08-28 18:29:13 +00:00
_weakrefset.py Merged revisions 86881,86887,86913-86915,86933,86943,86960,86964,86974,86980,86996,87008 via svnmerge from 2011-02-25 10:39:23 +00:00
abc.py Use weakrefs to hold onto classes #2521. 2010-08-21 03:03:22 +00:00
aifc.py Issue #13589: Fix some serialization primitives in the aifc module. 2012-01-17 17:13:04 +01:00
antigravity.py easter egg 2008-10-15 11:49:10 +00:00
anydbm.py Add docstring to anydbm.open 2011-05-01 02:02:30 +02:00
argparse.py Issue #9347: Fix formatting for tuples in argparse type= error messages. 2011-04-04 01:47:52 +02:00
ast.py Issue #11000 ast.parse doc fix (r88172) 2011-01-24 21:48:11 +00:00
asynchat.py warnings.catch_warnings() now returns a list or None instead of the custom 2008-09-09 00:49:16 +00:00
asyncore.py Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. 2011-07-14 19:49:02 +02:00
atexit.py
audiodev.py Deprecate the audiodev module for 3.0. 2008-05-06 23:23:34 +00:00
base64.py Merged revisions 85497 via svnmerge from 2010-10-14 21:22:52 +00:00
bdb.py Merged revisions 86861 via svnmerge from 2010-11-29 12:41:03 +00:00
binhex.py Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
bisect.py Per the language summit, the optional fastpath imports should use from-import-star. 2009-03-31 17:47:06 +00:00
cProfile.py Merged revisions 83524,84776 via svnmerge from 2010-09-13 17:36:36 +00:00
calendar.py Merged revisions 85728 via svnmerge from 2010-11-26 07:57:57 +00:00
cgi.py Fix closes Issue12529 - cgi.parse_header failure on double quotes and 2011-10-20 00:52:24 +08:00
cgitb.py Merged revisions 79558 via svnmerge from 2010-08-02 20:26:41 +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:04 +01:00
code.py this main is much more useful 2009-11-12 23:42:23 +00:00
codecs.py Merged revisions 81471-81472 via svnmerge from 2010-05-22 16:52:13 +00:00
codeop.py
collections.py Fix named tuples to work with vars(). 2011-06-02 20:40:35 -07:00
colorsys.py pep8tify conditionals 2009-01-30 02:02:25 +00:00
commands.py Merged revisions 72458 via svnmerge from 2009-05-08 02:47:02 +00:00
compileall.py Clarify compileall command-line options (#10454). 2011-09-01 20:04:50 +02:00
contextlib.py Remove markup from docstring 2009-06-23 10:51:02 +00:00
cookielib.py Remove duplication. 2011-10-19 10:39:35 +03:00
copy.py Merged revisions 84495-84496 via svnmerge from 2010-09-04 17:52:26 +00:00
copy_reg.py Revert copy_reg -> copyreg rename. 2008-05-20 07:49:57 +00:00
csv.py #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 12:34:31 +02:00
dbhash.py Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
decimal.py Update link to the decimal arithmetic specification. 2011-08-24 19:13:17 -07:00
difflib.py Issue 11747: Fix output format for context diffs. 2011-04-12 15:48:25 -07:00
dircache.py Deprecate the dircache module for 3.0. 2008-05-10 21:12:57 +00:00
dis.py Merged revisions 79769 via svnmerge from 2010-04-04 23:27:35 +00:00
doctest.py Followup to #7502: add __hash__ method and tests. 2011-12-18 20:20:17 +01:00
dumbdbm.py
dummy_thread.py Remove imports of 'warnings' that are no longer needed in dummy_thread, 2008-08-17 22:10:11 +00:00
dummy_threading.py
filecmp.py Issue 11802: filecmp cache was growing without bound. 2011-06-25 17:14:53 +02:00
fileinput.py Remove a use of callable() in fileinput to silence a -3 warning. 2008-08-03 23:52:32 +00:00
fnmatch.py Merged revisions 82769 via svnmerge from 2010-07-10 14:11:51 +00:00
formatter.py Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
fpformat.py Deprecate the fpformat module for removal in 3.0. 2008-05-10 22:11:45 +00:00
fractions.py Issue #8294: Allow float and Decimal arguments in Fraction constructor. 2010-04-02 22:27:36 +00:00
ftplib.py Issue #10883: Fix socket leaks in urllib.request. 2011-07-23 15:51:16 +02:00
functools.py Issue #11628: cmp_to_key should use__slots__. 2011-03-22 13:20:59 -07:00
genericpath.py No need to assign the results of expressions used only for side effects. 2010-02-06 22:59:15 +00:00
getopt.py Merged revisions 83117 via svnmerge from 2010-07-24 01:12:54 +00:00
getpass.py issue11236 getpass.getpass to respond ctrl-c or ctrl-z 2011-04-26 21:02:26 +08:00
gettext.py #11515: fix several typos. Patch by Piotr Kasprzyk. 2011-03-15 18:55:01 +02:00
glob.py Merged revisions 70866-70868,70870-70871,70893,70896,70902,70905,70907,70912,70915,70927,70933,70940,70944,70954,70963,70998,71056 via svnmerge from 2009-04-05 21:21:05 +00:00
gzip.py Issue #13781: Fix GzipFile to work with os.fdopen()'d file objects. 2012-01-19 00:40:46 +02:00
hashlib.py Fixes Issue #12059: Properly handle missing hash functions even when 2011-05-14 15:07:53 -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:29:06 -07:00
hmac.py silence callable warning in hmac 2008-08-19 19:07:38 +00:00
htmlentitydefs.py revert creation of the html.entities and html.parser modules 2008-05-20 06:08:38 +00:00
htmllib.py Deprecate htmllib and sgmllib for 3.0. 2008-06-01 21:19:14 +00:00
httplib.py Fixes #10860: Handle empty port after port delimiter in httplib 2011-10-18 17:16:00 +02:00
ihooks.py Add support to the ihooks module for relative imports. 2009-10-14 19:23:53 +00:00
imaplib.py Issue #1441530: In imaplib, use makefile() to wrap the SSL socket to avoid 2011-05-24 23:10:54 +02:00
imghdr.py #3424 rearrange the order of tests in imghdr to place more common types first 2008-08-16 16:29:02 +00:00
imputil.py Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
inspect.py Revert part of 13f56cd8dec1 (issue #1785) to avoid breaking getmembers() with unbound methods. 2012-01-18 17:39:01 +01:00
io.py Merged revisions 78757 via svnmerge from 2010-08-02 21:35:06 +00:00
keyword.py
linecache.py Merged revisions 81432 via svnmerge from 2010-05-21 21:45:16 +00:00
locale.py Issue #3067: Enhance the documentation and docstring of locale.setlocale() 2011-11-05 10:18:50 +02:00
macpath.py Merged revisions 84701,84784 via svnmerge from 2010-09-13 20:31:34 +00:00
macurl2path.py
mailbox.py Fix Maildir initialization so that maildir contents are read correctly. 2011-11-05 09:50:37 +02:00
mailcap.py
markupbase.py #13576: add tests about the handling of (possibly broken) condcoms. 2011-12-19 07:28:08 +02:00
md5.py
mhlib.py Deprecated the mhlib module for removal in 3.0. 2008-05-11 03:01:47 +00:00
mimetools.py warnings.catch_warnings() now returns a list or None instead of the custom 2008-09-09 00:49:16 +00:00
mimetypes.py Revert commit that was not a bugfix (#5301). 2011-11-04 18:15:45 +01:00
mimify.py
modulefinder.py Merged revisions 67046 via svnmerge from 2008-10-30 20:29:54 +00:00
multifile.py Deprecate the multifile module as per PEP 4. 2008-05-12 03:19:20 +00:00
mutex.py use True and False 2009-01-27 23:15:48 +00:00
netrc.py fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
new.py restricted environments are no more 2009-08-28 16:48:03 +00:00
nntplib.py #11515: fix several typos. Patch by Piotr Kasprzyk. 2011-03-15 18:55:01 +02:00
ntpath.py Correction to f1509fc75435 - Issue #11583 2011-06-09 10:00:42 -05:00
nturl2path.py Fix Issue11474 - url2pathname() handling of '/C|/' on Windows 2011-04-14 12:54:35 +08:00
numbers.py Merged revisions 87455 via svnmerge from 2010-12-23 22:22:48 +00:00
opcode.py Issue #2333: Backport set and dict comprehensions syntax. 2010-01-11 22:36:12 +00:00
optparse.py #8158: add missing 'description' description to optparse docstring. 2011-05-04 21:05:52 -04:00
os.py merge 2.6 with hash randomization fix 2012-02-20 21:44:56 -05:00
os2emxpath.py Merged revisions 78247 via svnmerge from 2010-02-20 09:16:04 +00:00
pdb.doc Untabify. 2010-06-27 11:24:15 +00:00
pdb.py PDB now will properly escape backslashes in the names of modules it executes. Fixes #7750 2011-11-17 18:03:24 -05:00
pickle.py Issue #7689: Allow pickling of dynamically created classes when their 2011-10-04 09:34:48 +02:00
pickletools.py #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 12:34:31 +02:00
pipes.py Remove obsolete comment 2011-09-01 22:06:49 +02:00
pkgutil.py Issue #7367: Fix pkgutil.walk_paths to skip directories whose 2011-10-06 14:17:47 -07:00
platform.py merge from fb225c289bf0 2012-02-01 15:17:39 -06:00
plistlib.py Fix for issue 7852: the DTD for OSX Plists has changed due 2010-04-20 20:59:37 +00:00
popen2.py
poplib.py Fixed the semantic of timeout for socket.create_connection and 2008-05-29 16:39:26 +00:00
posixfile.py
posixpath.py Issue #5117: Fixed root directory related issue on posixpath.relpath() and 2010-10-18 13:55:29 +00:00
pprint.py Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
profile.py fix ws 2011-06-28 21:57:21 -05:00
pstats.py Merge #12417 followup, also removing an extra docstring 2011-07-28 22:32:04 +02:00
pty.py Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF. 2012-02-16 00:40:03 -08:00
py_compile.py fix typo in r79533, introduced by the fix for issue #8233 2010-04-20 19:45:34 +00:00
pyclbr.py Minor cleanups: 2008-04-28 02:57:23 +00:00
pydoc.py Issue #1785: Fix inspect and pydoc with misbehaving descriptors. 2011-12-21 10:16:14 +01:00
quopri.py
random.py Code simplification suggested by Sven Marnach. 2011-06-25 11:24:35 +02:00
re.py remove extra zero 2012-02-21 08:08:29 -05:00
repr.py Revert the renaming of repr to reprlib. 2008-05-23 05:03:59 +00:00
rexec.py No need to assign the results of expressions used only for side effects. 2010-02-06 22:59:15 +00:00
rfc822.py Remove duplication. 2011-10-19 10:39:35 +03:00
rlcompleter.py Remove a use of callable() to silence the warning triggered under -3. 2008-08-01 01:45:49 +00:00
robotparser.py Merged revisions 83449 via svnmerge from 2010-08-01 22:00:39 +00:00
runpy.py Merged revisions 85398 via svnmerge from 2010-10-13 01:10:16 +00:00
sched.py Remove duplication. 2011-10-19 10:39:35 +03:00
sets.py Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
sgmllib.py Merged revisions 70906 via svnmerge from 2009-04-04 12:51:52 +00:00
sha.py
shelve.py Merged revisions 78141-78142 via svnmerge from 2010-02-11 02:01:02 +00:00
shlex.py
shutil.py Add missing name in shutil.__all__ 2011-08-21 16:14:01 +02:00
site.py Issue #10881: Fix test_site failures with OS X framework builds. 2012-02-06 00:55:50 +01:00
smtpd.py Issue #9168: now smtpd is able to bind privileged port. 2011-10-20 23:21:58 +02:00
smtplib.py Provide a better diagnosis on socket errors 2011-08-28 01:18:31 +02:00
sndhdr.py Merged revisions 75407,75409-75413,75415,75419-75421 via svnmerge from 2010-08-03 03:19:00 +00:00
socket.py Merged revisions 84597-84599 via svnmerge from 2010-09-07 21:40:25 +00:00
sre.py
sre_compile.py remove set compat cruft 2008-10-14 22:37:18 +00:00
sre_constants.py
sre_parse.py remove set compat cruft 2008-10-14 22:37:18 +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-27 23:41:53 -07:00
statvfs.py Deprecated statvfs for removal in 3.0. 2008-05-16 00:50:02 +00:00
string.py Merged revisions 84470-84471,84566-84567,84759 via svnmerge from 2010-09-13 07:46:37 +00:00
stringold.py Replace all map(None, a) with list(a). 2008-07-18 19:06:13 +00:00
stringprep.py
struct.py Merged revisions 75283 via svnmerge from 2009-10-27 17:00:03 +00:00
subprocess.py Issue #12786: Set communication pipes used by subprocess.Popen CLOEXEC to avoid 2011-08-25 21:20:54 +02:00
sunau.py Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
sunaudio.py Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality. 2008-07-18 19:30:22 +00:00
symbol.py regenerate symbol.py 2010-12-11 04:38:24 +00:00
symtable.py return locals and cells in get_locals() not bound globals, though 2009-06-28 19:27:55 +00:00
sysconfig.py Issue #10881: Fix test_site failures with OS X framework builds. 2012-02-06 00:55:50 +01:00
tabnanny.py
tarfile.py Issue #13639: Accept unicode filenames in tarfile.open(mode="w|gz"). 2011-12-21 19:27:50 +01:00
telnetlib.py Merged revisions 87230 via svnmerge from 2010-12-14 14:34:16 +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 Optimize optimization and fix method name in docstring. 2009-09-18 16:19:56 +00:00
this.py
threading.py remove unused import 2012-02-03 19:07:30 -05:00
timeit.py Issue 12514: Use try/finally to assure that timeit restores GC when done. 2011-07-28 23:56:38 -07:00
toaiff.py Deprecate the toaiff module for removal in 3.0. 2008-05-09 05:32:42 +00:00
token.py
tokenize.py some cleanups 2009-10-15 03:05:39 +00:00
trace.py Fix test failures when Python is compiled without thread support. 2011-08-29 09:37:07 +02:00
traceback.py Merged revisions 80777 via svnmerge from 2010-05-05 12:45:31 +00:00
tty.py
types.py remove more code for restricted execution 2009-08-28 16:49:56 +00:00
urllib.py Fix Issue6631 - Disallow relative files paths in urllib*.open() 2012-01-21 11:43:02 +08:00
urllib2.py Issue #13211: Add .reason attribute to HTTPError to implement parent class (URLError) interface. 2011-11-07 10:44:25 -05:00
urlparse.py include svn+ssh as well. 2011-08-03 18:40:18 +08:00
user.py Deprecate the user module for removal in 3.0. 2008-05-08 20:36:09 +00:00
uu.py Merged revisions 86037 via svnmerge from 2010-10-31 16:17:36 +00:00
uuid.py Merged revisions 86192 via svnmerge from 2010-11-05 14:56:16 +00:00
warnings.py Merged revisions 78757 via svnmerge from 2010-08-02 21:35:06 +00:00
wave.py Merged revisions 85970 via svnmerge from 2010-11-20 11:29:09 +00:00
weakref.py Backport of weakref.WeakSet and tests from Python 3. 2010-03-29 20:04:23 +00:00
webbrowser.py #12601: fix typo. 2011-07-21 11:18:18 +03:00
whichdb.py Close #13007: whichdb should recognize gdbm 1.9 magic numbers 2011-09-19 16:57:18 +02: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:15:24 +01:00
xmllib.py Merged revisions 72458 via svnmerge from 2009-05-08 02:47:02 +00:00
xmlrpclib.py Issue #12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of 2011-09-23 01:15:32 +02:00
zipfile.py Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated 2011-10-20 01:38:35 +08:00