New submission from Jaivish Kothari:
https://docs.python.org/2/whatsnew/2.4.html?highlight=decorators#pep-318-dec... ''' def require_int (func): def wrapper (arg): assert isinstance(arg, int) return func(arg)
return wrapper '''
New line is ommited before return wrapper
''' def require_int (func): def wrapper (arg): assert isinstance(arg, int) return func(arg) return wrapper
'''
---------- assignee: docs@python components: Documentation messages: 241508 nosy: docs@python, georg.brandl, janonymous priority: normal severity: normal status: open title: Documentation Error: Extra line Break type: enhancement versions: Python 2.7
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue24005 _______________________________________