mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Two nits.
This commit is contained in:
parent
9a37159e51
commit
18a499d1c5
2 changed files with 3 additions and 2 deletions
|
@ -290,7 +290,7 @@ The simple form, ``assert expression``, is equivalent to ::
|
|||
The extended form, ``assert expression1, expression2``, is equivalent to ::
|
||||
|
||||
if __debug__:
|
||||
if not expression1: raise AssertionError, expression2
|
||||
if not expression1: raise AssertionError(expression2)
|
||||
|
||||
.. index::
|
||||
single: __debug__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue