From bee2e1897b0194290ce3f5a4b19241b1566dc392 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 22 Jul 2009 00:03:43 +0000 Subject: simplify --- Doc/reference/simple_stmts.rst | 8 ++++---- 1 file 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__ -- cgit v0.12