Minor doc updates; updating python 2 references to python 3 and updating grammar

This commit is contained in:
Joe Farebrother
2025-07-15 13:26:46 +01:00
parent 7a7db0efe8
commit 909f57261c
11 changed files with 20 additions and 20 deletions

View File

@@ -45,10 +45,10 @@ leaving <code>KeyboardInterrupt</code> to propagate.
</example>
<references>
<li>Python Language Reference: <a href="http://docs.python.org/2.7/reference/compound_stmts.html#try">The try statement</a>,
<a href="http://docs.python.org/2.7/reference/executionmodel.html#exceptions">Exceptions</a>.</li>
<li>Python Language Reference: <a href="http://docs.python.org/3/reference/compound_stmts.html#try">The try statement</a>,
<a href="http://docs.python.org/3/reference/executionmodel.html#exceptions">Exceptions</a>.</li>
<li>M. Lutz, Learning Python, Section 35.3: Exception Design Tips and Gotchas, O'Reilly Media, 2013.</li>
<li>Python Tutorial: <a href="https://docs.python.org/2/tutorial/errors.html">Errors and Exceptions</a>.</li>
<li>Python Tutorial: <a href="https://docs.python.org/3/tutorial/errors.html">Errors and Exceptions</a>.</li>
</references>

View File

@@ -7,7 +7,7 @@
The loss of information can lead to hard to debug errors and incomplete log files.
It is even possible that ignoring an exception can cause a security vulnerability.
An empty <code>except</code> block may be an indication that the programmer intended to
handle the exception but never wrote the code to do so.</p>
handle the exception, but never wrote the code to do so.</p>
</overview>
<recommendation>
@@ -15,7 +15,7 @@ handle the exception but never wrote the code to do so.</p>
</recommendation>
<example>
<p>In this example the program keeps running with the same privileges if it fails to drop to lower
<p>In this example, the program keeps running with the same privileges if it fails to drop to lower
privileges.</p>
<sample src="EmptyExcept.py" />