Revision 5112da27

b/snf-cyclades-app/synnefo/management/common.py
254 254
    t_length = sum(widths) + len(sep) * (len(widths) - 1)
255 255
    if headers:
256 256
        # pretty print the headers
257
        print >> out, sep.join((val.rjust(width) for val, width \
258
                                                 in zip(headers, widths)))
257
        print >> out, sep.join((val.rjust(width)
258
                               for val, width in zip(headers, widths)))
259 259
        print >> out, "-" * t_length
260 260
        # remove headers
261 261
        table = table[1:]
262 262

  
263 263
    # print the rest table
264 264
    for row in table:
265
        print >> out, sep.join((val.rjust(width).encode('utf8') \
266
                                for val, width in zip(row, widths)))
265
        print >> out, sep.join((val.rjust(width).encode('utf8')
266
                               for val, width in zip(row, widths)))
267 267

  
268 268

  
269 269
class UUIDCache(object):

Also available in: Unified diff