From 4088a7dddcde27ca549a11e92ca6b954339a9b55 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 3 May 2016 14:10:04 +0300 Subject: [PATCH] Backed out changeset: c4aef26d128b Unknown interpreted text role "kbd". --- 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 index 6c5656ee0..da3c009e1 100644 --- a/pep-0008.txt +++ b/pep-0008.txt @@ -1111,7 +1111,7 @@ Programming Recommendations A bare ``except:`` clause will catch SystemExit and KeyboardInterrupt exceptions, making it harder to interrupt a - program with :kbd:`Control-C`, and can disguise other problems. If you + program with 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 index eb8f06df0..12212d8a0 100644 --- a/pep-0352.txt +++ b/pep-0352.txt @@ -134,7 +134,7 @@ interpreter should exit will not be caught and thus be allowed to 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 :kbd:`Ctrl-C`). +application to exit when they press the interrupt key (usually 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 index c408b964d..ea025bc69 100644 --- a/pep-0475.txt +++ b/pep-0475.txt @@ -353,7 +353,7 @@ as the timeout. So the sleep can be interrupted by ``SIGINT``. interrupted. ``PyOS_StdioReadline()`` also used ``sigint_event`` when ``fgets()`` -failed to check if :kbd:`Ctrl-C` or :kbd:`Ctrl-Z` was pressed. +failed to check if Ctrl-C or Ctrl-Z was pressed. Links