def format_args(args=None, kwargs=None):
 if (args is not None):
  arglist = [utils.compact_text(repr(arg), 200) for arg in args]
 else:
  arglist = []
 if (kwargs is not None):
  for (k, v) in kwargs.items():
   arglist.append('{}={}'.format(k, utils.compact_text(repr(v), 200)))
 return ', '.join(arglist)

def format_args ( args = None , kwargs = None ) : if ( args is not None ) : arglist = [ utils . compact_text ( repr ( arg ) , 200 ) for arg in args ] else : arglist = [ ] if ( kwargs is not None ) : for ( k , v ) in kwargs . items ( ) : arglist . append ( '{}={}' . format ( k , utils . compact_text ( repr ( v ) , 200 ) ) ) return ', ' . join ( arglist )
format a list of arguments/kwargs to a function-call like string .