From: Benjamin Peterson Date: Wed, 22 Jul 2009 16:34:37 +0000 (+0000) Subject: revert r74152 X-Git-Tag: v2.7a1~724 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d38d344370bbeb8c08d0d9aa2143e2852ee46de9;p=thirdparty%2FPython%2Fcpython.git revert r74152 --- diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 572bd4851464..6f0f1f12eb2d 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__ and not expression: - raise AssertionError + if __debug__: + if not expression: raise AssertionError The extended form, ``assert expression1, expression2``, is equivalent to :: - if __debug__ and not expression1: - raise AssertionError(expression2) + if __debug__: + if not expression1: raise AssertionError(expression2) .. index:: single: __debug__