@@ -204,23 +204,23 @@ def _safe_string(value, what, func=str):
204204# --
205205
206206def print_exc (limit = None , file = None , chain = True ):
207- """Shorthand for 'print_exception(sys.exception(), limit, file, chain)'."""
207+ """Shorthand for 'print_exception(sys.exception(), limit=limit , file=file, chain= chain)'."""
208208 print_exception (sys .exception (), limit = limit , file = file , chain = chain )
209209
210210def format_exc (limit = None , chain = True ):
211211 """Like print_exc() but return a string."""
212212 return "" .join (format_exception (sys .exception (), limit = limit , chain = chain ))
213213
214214def print_last (limit = None , file = None , chain = True ):
215- """This is a shorthand for 'print_exception(sys.last_exc, limit, file, chain)'."""
215+ """This is a shorthand for 'print_exception(sys.last_exc, limit=limit , file=file, chain= chain)'."""
216216 if not hasattr (sys , "last_exc" ) and not hasattr (sys , "last_type" ):
217217 raise ValueError ("no last exception" )
218218
219219 if hasattr (sys , "last_exc" ):
220- print_exception (sys .last_exc , limit , file , chain )
220+ print_exception (sys .last_exc , limit = limit , file = file , chain = chain )
221221 else :
222222 print_exception (sys .last_type , sys .last_value , sys .last_traceback ,
223- limit , file , chain )
223+ limit = limit , file = file , chain = chain )
224224
225225
226226#
0 commit comments