def print_list(group, noti=False):
 for grp in group:
  name = grp['full_name']
  name = color_func(c['GROUP']['name'])((name + ' : '))
  member = str(grp['member_count'])
  member = color_func(c['GROUP']['member'])((member + ' member'))
  subscriber = str(grp['subscriber_count'])
  subscriber = color_func(c['GROUP']['subscriber'])((subscriber + ' subscriber'))
  description = grp['description'].strip()
  description = color_func(c['GROUP']['description'])(description)
  mode = grp['mode']
  mode = color_func(c['GROUP']['mode'])(('Type: ' + mode))
  created_at = grp['created_at']
  date = parser.parse(created_at)
  clock = fallback_humanize(date)
  clock = ('Created at ' + color_func(c['GROUP']['clock'])(clock))
  prefix = (' ' * 2)
  if noti:
   prefix = ((' ' * 2) + prefix)
  line1 = ((((prefix + name) + member) + '  ') + subscriber)
  line2 = ((prefix + (' ' * 2)) + description)
  line3 = ((prefix + (' ' * 2)) + mode)
  line4 = ((prefix + (' ' * 2)) + clock)
  printNicely('')
  printNicely(line1)
  printNicely(line2)
  printNicely(line3)
  printNicely(line4)
 if (not noti):
  printNicely('')

def print_list ( group , noti = False ) : for grp in group : name = grp [ 'full_name' ] name = color_func ( c [ 'GROUP' ] [ 'name' ] ) ( ( name + ' : ' ) ) member = str ( grp [ 'member_count' ] ) member = color_func ( c [ 'GROUP' ] [ 'member' ] ) ( ( member + ' member' ) ) subscriber = str ( grp [ 'subscriber_count' ] ) subscriber = color_func ( c [ 'GROUP' ] [ 'subscriber' ] ) ( ( subscriber + ' subscriber' ) ) description = grp [ 'description' ] . strip ( ) description = color_func ( c [ 'GROUP' ] [ 'description' ] ) ( description ) mode = grp [ 'mode' ] mode = color_func ( c [ 'GROUP' ] [ 'mode' ] ) ( ( 'Type: ' + mode ) ) created_at = grp [ 'created_at' ] date = parser . parse ( created_at ) clock = fallback_humanize ( date ) clock = ( 'Created at ' + color_func ( c [ 'GROUP' ] [ 'clock' ] ) ( clock ) ) prefix = ( ' ' * 2 ) if noti : prefix = ( ( ' ' * 2 ) + prefix ) line1 = ( ( ( ( prefix + name ) + member ) + '  ' ) + subscriber ) line2 = ( ( prefix + ( ' ' * 2 ) ) + description ) line3 = ( ( prefix + ( ' ' * 2 ) ) + mode ) line4 = ( ( prefix + ( ' ' * 2 ) ) + clock ) printNicely ( '' ) printNicely ( line1 ) printNicely ( line2 ) printNicely ( line3 ) printNicely ( line4 ) if ( not noti ) : printNicely ( '' )
print the list of tuples as returned by extract_tb() or extract_stack() as a formatted stack trace to the given file .