[Python-checkins] cpython (2.7): Change double hyphens (en dashes) to em (longer) dashes
martin.panter
python-checkins at python.org
Sun Nov 20 23:23:49 EST 2016
https://hg.python.org/cpython/rev/7da35bced88e
changeset: 105256:7da35bced88e
branch: 2.7
parent: 105249:4de956751cf1
user: Martin Panter <vadmium+py at gmail.com>
date: Mon Nov 21 00:21:39 2016 +0000
summary:
Change double hyphens (en dashes) to em (longer) dashes
files:
Doc/howto/cporting.rst | 2 +-
Doc/howto/curses.rst | 2 +-
Doc/library/hmac.rst | 2 +-
Doc/library/io.rst | 2 +-
Doc/library/pdb.rst | 2 +-
Doc/library/whichdb.rst | 4 ++--
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Doc/howto/cporting.rst b/Doc/howto/cporting.rst
--- a/Doc/howto/cporting.rst
+++ b/Doc/howto/cporting.rst
@@ -95,7 +95,7 @@
--------------------
Python 3 has only one integer type, :func:`int`. But it actually
-corresponds to Python 2's :func:`long` type--the :func:`int` type
+corresponds to Python 2's :func:`long` type—the :func:`int` type
used in Python 2 was removed. In the C-API, ``PyInt_*`` functions
are replaced by their ``PyLong_*`` equivalents.
diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst
--- a/Doc/howto/curses.rst
+++ b/Doc/howto/curses.rst
@@ -35,7 +35,7 @@
The curses library hides all the details of different terminals, and provides
the programmer with an abstraction of a display, containing multiple
non-overlapping windows. The contents of a window can be changed in various
-ways-- adding text, erasing it, changing its appearance--and the curses library
+ways---adding text, erasing it, changing its appearance---and the curses library
will automagically figure out what control codes need to be sent to the terminal
to produce the right output.
diff --git a/Doc/library/hmac.rst b/Doc/library/hmac.rst
--- a/Doc/library/hmac.rst
+++ b/Doc/library/hmac.rst
@@ -79,7 +79,7 @@
If *a* and *b* are of different lengths, or if an error occurs,
a timing attack could theoretically reveal information about the
- types and lengths of *a* and *b*--but not their values.
+ types and lengths of *a* and *b*—but not their values.
.. versionadded:: 2.7.7
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -130,7 +130,7 @@
the list of supported encodings.
*errors* is an optional string that specifies how encoding and decoding
- errors are to be handled--this cannot be used in binary mode. Pass
+ errors are to be handled—this cannot be used in binary mode. Pass
``'strict'`` to raise a :exc:`ValueError` exception if there is an encoding
error (the default of ``None`` has the same effect), or pass ``'ignore'`` to
ignore errors. (Note that ignoring encoding errors can lead to data loss.)
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -290,7 +290,7 @@
return, jump, quit and their abbreviations) terminates the command list (as if
that command was immediately followed by end). This is because any time you
resume execution (even with a simple next or step), you may encounter another
- breakpoint--which could have its own command list, leading to ambiguities about
+ breakpoint—which could have its own command list, leading to ambiguities about
which list to execute.
If you use the 'silent' command in the command list, the usual message about
diff --git a/Doc/library/whichdb.rst b/Doc/library/whichdb.rst
--- a/Doc/library/whichdb.rst
+++ b/Doc/library/whichdb.rst
@@ -11,8 +11,8 @@
The single function in this module attempts to guess which of the several simple
-database modules available--\ :mod:`dbm`, :mod:`gdbm`, or :mod:`dbhash`\
---should be used to open a given file.
+database modules available—:mod:`dbm`, :mod:`gdbm`, or :mod:`dbhash`\
+—should be used to open a given file.
.. function:: whichdb(filename)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list