From dba903993a8d3e13d2cf83d6a8912e908025b17b Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 10 May 2016 12:01:23 +0300 Subject: Issue #23921: Standardized documentation whitespace formatting. Original patch by James Edwards. --- Doc/tutorial/errors.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Doc/tutorial/errors.rst') diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 351ee52b4e..4195c7e892 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -170,15 +170,15 @@ reference ``.args``. One may also instantiate an exception first before raising it and add any attributes to it as desired. :: >>> try: - ... raise Exception('spam', 'eggs') + ... raise Exception('spam', 'eggs') ... except Exception as inst: - ... print(type(inst)) # the exception instance - ... print(inst.args) # arguments stored in .args - ... print(inst) # __str__ allows args to be printed directly, - ... # but may be overridden in exception subclasses - ... x, y = inst.args # unpack args - ... print('x =', x) - ... print('y =', y) + ... print(type(inst)) # the exception instance + ... print(inst.args) # arguments stored in .args + ... print(inst) # __str__ allows args to be printed directly, + ... # but may be overridden in exception subclasses + ... x, y = inst.args # unpack args + ... print('x =', x) + ... print('y =', y) ... ('spam', 'eggs') -- cgit v1.2.1