@@ -176,23 +176,23 @@ def _safe_string(value, what, func=str):
176176# --
177177
178178def print_exc (limit = None , file = None , chain = True ):
179- """Shorthand for 'print_exception(sys.exception(), limit, file, chain)'."""
179+ """Shorthand for 'print_exception(sys.exception(), limit=limit , file=file, chain= chain)'."""
180180 print_exception (sys .exception (), limit = limit , file = file , chain = chain )
181181
182182def format_exc (limit = None , chain = True ):
183183 """Like print_exc() but return a string."""
184184 return "" .join (format_exception (sys .exception (), limit = limit , chain = chain ))
185185
186186def print_last (limit = None , file = None , chain = True ):
187- """This is a shorthand for 'print_exception(sys.last_exc, limit, file, chain)'."""
187+ """This is a shorthand for 'print_exception(sys.last_exc, limit=limit , file=file, chain= chain)'."""
188188 if not hasattr (sys , "last_exc" ) and not hasattr (sys , "last_type" ):
189189 raise ValueError ("no last exception" )
190190
191191 if hasattr (sys , "last_exc" ):
192- print_exception (sys .last_exc , limit , file , chain )
192+ print_exception (sys .last_exc , limit = limit , file = file , chain = chain )
193193 else :
194194 print_exception (sys .last_type , sys .last_value , sys .last_traceback ,
195- limit , file , chain )
195+ limit = limit , file = file , chain = chain )
196196
197197
198198#
0 commit comments