diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-07-22 16:34:37 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-07-22 16:34:37 +0000 |
commit | d38d344370bbeb8c08d0d9aa2143e2852ee46de9 (patch) | |
tree | 824f07eab202ee0706eb071966f55ccb20ebf852 | |
parent | ec812caf5dd4c8e49c24341852181cca1740277e (diff) | |
download | cpython-git-d38d344370bbeb8c08d0d9aa2143e2852ee46de9.tar.gz |
revert r74152
-rw-r--r-- | Doc/reference/simple_stmts.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 572bd48514..6f0f1f12eb 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__ |