[Python-checkins] peps: Use the kbd role.
serhiy.storchaka
python-checkins at python.org
Tue May 3 03:51:42 EDT 2016
https://hg.python.org/peps/rev/c4aef26d128b
changeset: 6298:c4aef26d128b
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue May 03 10:47:48 2016 +0300
summary:
Use the kbd role.
files:
pep-0008.txt | 2 +-
pep-0352.txt | 2 +-
pep-0475.txt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pep-0008.txt b/pep-0008.txt
--- a/pep-0008.txt
+++ b/pep-0008.txt
@@ -1111,7 +1111,7 @@
A bare ``except:`` clause will catch SystemExit and
KeyboardInterrupt exceptions, making it harder to interrupt a
- program with Control-C, and can disguise other problems. If you
+ program with :kbd:`Control-C`, and can disguise other problems. If you
want to catch all exceptions that signal program errors, use
``except Exception:`` (bare except is equivalent to ``except
BaseException:``).
diff --git a/pep-0352.txt b/pep-0352.txt
--- a/pep-0352.txt
+++ b/pep-0352.txt
@@ -134,7 +134,7 @@
propagate up and allow the interpreter to terminate.
KeyboardInterrupt has been moved since users typically expect an
-application to exit when they press the interrupt key (usually Ctrl-C).
+application to exit when they press the interrupt key (usually :kbd:`Ctrl-C`).
If people have overly broad ``except`` clauses the expected behaviour
does not occur.
diff --git a/pep-0475.txt b/pep-0475.txt
--- a/pep-0475.txt
+++ b/pep-0475.txt
@@ -353,7 +353,7 @@
interrupted.
``PyOS_StdioReadline()`` also used ``sigint_event`` when ``fgets()``
-failed to check if Ctrl-C or Ctrl-Z was pressed.
+failed to check if :kbd:`Ctrl-C` or :kbd:`Ctrl-Z` was pressed.
Links
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list