commit | 19cdee891ed1320c7f6c6ec54df7d4c838bdc317 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Sat Jan 05 06:53:27 2013 +0200 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Sat Jan 05 06:53:27 2013 +0200 |
tree | a93d02b2e232b91917977a6fecb78965e81871dc | |
parent | cad8b0ff8edc2dd6437ee1022977358a16f3860e [diff] |
Fix example by making the exception inherit from Exception.
diff --git a/Doc/faq/design.rst b/Doc/faq/design.rst index 7c5116d..44931fd 100644 --- a/Doc/faq/design.rst +++ b/Doc/faq/design.rst
@@ -728,7 +728,7 @@ reasonable uses of the "go" or "goto" constructs of C, Fortran, and other languages. For example:: - class label: pass # declare a label + class label(Exception): pass # declare a label try: ...