merge heads

This commit is contained in:
Benjamin Peterson 2011-08-16 17:46:44 -05:00
commit 51be6e0a0f
6 changed files with 9 additions and 6 deletions

View File

@ -6,6 +6,9 @@
.. moduleauthor:: Raymond Hettinger <python at rcn.com>
.. sectionauthor:: Raymond Hettinger <python at rcn.com>
.. versionadded:: 3.3
Formerly, this module was part of the :mod:`collections` module.
.. testsetup:: *
from collections import *
@ -20,8 +23,6 @@ This module provides :term:`abstract base classes <abstract base class>` that
can be used to test whether a class provides a particular interface; for
example, whether it is hashable or whether it is a mapping.
.. versionchanged:: 3.3
Formerly, this module was part of the :mod:`collections` module.
.. _collections-abstract-base-classes:

View File

@ -72,7 +72,7 @@ The class can be used to simulate nested scopes and is useful in templating.
A user updateable list of mappings. The list is ordered from
first-searched to last-searched. It is the only stored state and can
modified to change which mappings are searched. The list should
be modified to change which mappings are searched. The list should
always contain at least one mapping.
.. method:: new_child()

View File

@ -875,7 +875,7 @@ zlib
----
The :mod:`zlib` extension is built using an included copy of the zlib
sources unless the zlib version found on the system is too old to be
sources if the zlib version found on the system is too old to be
used for the build::
Copyright (C) 1995-2011 Jean-loup Gailly and Mark Adler

View File

@ -276,7 +276,7 @@ def split(s, comments=False, posix=True):
return list(lex)
_find_unsafe = re.compile(r'[^\w@%\-\+=:,\./]', re.ASCII).search
_find_unsafe = re.compile(r'[^\w@%+=:,./-]', re.ASCII).search
def quote(s):
"""Return a shell-escaped version of the string *s*."""

View File

@ -1359,7 +1359,7 @@ funny:
-o -name .hgignore \
-o -name .bzrignore \
-o -name MANIFEST \
-print
-o -print
# Perform some verification checks on any modified files.
patchcheck:

View File

@ -32,6 +32,8 @@ def main(regrtest_args):
'-r', # Randomize test order
'-w', # Re-run failed tests in verbose mode
])
if sys.platform == 'win32':
args.append('-n') # Silence alerts under Windows
if not any(is_multiprocess_flag(arg) for arg in regrtest_args):
args.extend(['-j', '0']) # Use all CPU cores
if not any(is_resource_use_flag(arg) for arg in regrtest_args):