Project

General

Profile

« Previous | Next » 

Revision 973

exc.py: print_ex(): Declare emph param as a keywork param instead of popping it from **format

View differences:

lib/exc.py
23 23
    if with_name: msg = util.type_name(e)+': '+msg
24 24
    return msg
25 25

  
26
def print_ex(e, **format):
27
    emph = format.pop('emph', True)
28
    
26
def print_ex(e, emph=True, **format):
29 27
    msg = str_(e, **format)
30 28
    if emph:
31 29
        first_line, nl, rest = msg.partition('\n')

Also available in: Unified diff