From 7be493a86c63feeb423302afc5906441d4ec1331 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 30 May 2009 07:31:25 +0000 Subject: Use preferred form of raising exceptions. --- Doc/tutorial/controlflow.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 95a6ea4..cc1d334 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -315,7 +315,7 @@ defined to allow. For example:: if ok in ('y', 'ye', 'yes'): return True if ok in ('n', 'no', 'nop', 'nope'): return False retries = retries - 1 - if retries < 0: raise IOError, 'refusenik user' + if retries < 0: raise IOError('refusenik user') print complaint This function can be called either like this: ``ask_ok('Do you really want to -- cgit v0.12