def _pprint_styles(_styles):
 (names, attrss, clss) = ([], [], [])
 import inspect
 _table = [[u'Class', u'Name', u'Attrs']]
 for (name, cls) in sorted(_styles.items()):
  if six.PY2:
   (args, varargs, varkw, defaults) = inspect.getargspec(cls.__init__)
  else:
   (args, varargs, varkw, defaults, kwonlyargs, kwonlydefs, annotations) = inspect.getfullargspec(cls.__init__)
  if defaults:
   args = [(argname, argdefault) for (argname, argdefault) in zip(args[1:], defaults)]
  else:
   args = None
  if (args is None):
   argstr = u'None'
  else:
   argstr = u','.join([(u'%s=%s' % (an, av)) for (an, av) in args])
  _table.append([cls.__name__, (u'``%s``' % name), argstr])
 return _pprint_table(_table)

def _pprint_styles ( _styles ) : ( names , attrss , clss ) = ( [ ] , [ ] , [ ] ) import inspect _table = [ [ u'Class' , u'Name' , u'Attrs' ] ] for ( name , cls ) in sorted ( _styles . items ( ) ) : if six . PY2 : ( args , varargs , varkw , defaults ) = inspect . getargspec ( cls . __init__ ) else : ( args , varargs , varkw , defaults , kwonlyargs , kwonlydefs , annotations ) = inspect . getfullargspec ( cls . __init__ ) if defaults : args = [ ( argname , argdefault ) for ( argname , argdefault ) in zip ( args [ 1 : ] , defaults ) ] else : args = None if ( args is None ) : argstr = u'None' else : argstr = u',' . join ( [ ( u'%s=%s' % ( an , av ) ) for ( an , av ) in args ] ) _table . append ( [ cls . __name__ , ( u'``%s``' % name ) , argstr ] ) return _pprint_table ( _table )
a helper function for the _style class .