def format_attrs(attrs):
 if (not attrs):
  return u''
 entries = [u'='.join((key, value)) for (key, value) in iteritems(attrs)]
 return ((u'[' + u', '.join(entries)) + u']')

def format_attrs ( attrs ) : if ( not attrs ) : return u'' entries = [ u'=' . join ( ( key , value ) ) for ( key , value ) in iteritems ( attrs ) ] return ( ( u'[' + u', ' . join ( entries ) ) + u']' )
format key .