summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-07-22 00:03:43 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-07-22 00:03:43 (GMT)
commitbee2e1897b0194290ce3f5a4b19241b1566dc392 (patch)
tree5cd5ad0aef9dbd82a20113bee89da1e15318b6a5 /Doc/reference
parent771e87bfed5666c8c261162fd5affbdd5006ac4e (diff)
downloadcpython-bee2e1897b0194290ce3f5a4b19241b1566dc392.zip
cpython-bee2e1897b0194290ce3f5a4b19241b1566dc392.tar.gz
cpython-bee2e1897b0194290ce3f5a4b19241b1566dc392.tar.bz2
simplify
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/simple_stmts.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index 6f0f1f1..572bd48 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -282,13 +282,13 @@ program:
The simple form, ``assert expression``, is equivalent to ::
- if __debug__:
- if not expression: raise AssertionError
+ if __debug__ and not expression:
+ raise AssertionError
The extended form, ``assert expression1, expression2``, is equivalent to ::
- if __debug__:
- if not expression1: raise AssertionError(expression2)
+ if __debug__ and not expression1:
+ raise AssertionError(expression2)
.. index::
single: __debug__