[Python-checkins] cpython: Add grammatical article to “an ASCII letter”
martin.panter
python-checkins at python.org
Sun Jun 12 02:28:43 EDT 2016
https://hg.python.org/cpython/rev/7ed6b4a077c4
changeset: 101921:7ed6b4a077c4
user: Martin Panter <vadmium+py at gmail.com>
date: Sun Jun 12 06:17:29 2016 +0000
summary:
Add grammatical article to “an ASCII letter”
files:
Doc/library/re.rst | 6 +++---
Misc/NEWS | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -321,7 +321,7 @@
The special sequences consist of ``'\'`` and a character from the list below.
-If the ordinary character is not ASCII digit or ASCII letter, then the
+If the ordinary character is not an ASCII digit or an ASCII letter, then the
resulting RE will match the second character. For example, ``\$`` matches the
character ``'$'``.
@@ -444,7 +444,7 @@
The ``'\u'`` and ``'\U'`` escape sequences have been added.
.. versionchanged:: 3.6
- Unknown escapes consisting of ``'\'`` and ASCII letter now are errors.
+ Unknown escapes consisting of ``'\'`` and an ASCII letter now are errors.
.. seealso::
@@ -743,7 +743,7 @@
Unmatched groups are replaced with an empty string.
.. versionchanged:: 3.6
- Unknown escapes consisting of ``'\'`` and ASCII letter now are errors.
+ Unknown escapes consisting of ``'\'`` and an ASCII letter now are errors.
.. function:: subn(pattern, repl, string, count=0, flags=0)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -56,7 +56,7 @@
- Issue #27029: Removed deprecated support of universal newlines mode from
ZipFile.open().
-- Issue #27030: Unknown escapes consisting of ``'\'`` and ASCII letter in
+- Issue #27030: Unknown escapes consisting of ``'\'`` and an ASCII letter in
regular expressions now are errors. The re.LOCALE flag now can be used
only with bytes patterns.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list