Changeset 258 for etherws


Ignore:
Timestamp:
10/10/13 00:49:22 (11 years ago)
Author:
atzm
Message:

tsume

File:
1 edited

Legend:

Unmodified
Added
Removed
  • etherws/trunk/etherws.py

    r257 r258  
    10491049        cols = zip(*rows) 
    10501050        maxlen = [0] * len(cols) 
    1051  
    10521051        for i in xrange(len(cols)): 
    10531052            maxlen[i] = max(len(str(c)) for c in cols[i]) 
    1054  
    10551053        fmt = '  '.join(['%%-%ds' % maxlen[i] for i in xrange(len(cols))]) 
    10561054        fmt = '  ' + fmt 
    1057  
    10581055        for row in rows: 
    10591056            print(fmt % tuple(row)) 
     
    11631160        if 'error' in result: 
    11641161            return _print_error(result['error']) 
    1165  
    11661162        rows = [['Port', 'VLAN', 'MAC', 'Age']] 
    11671163        for r in result['result']['entries']: 
Note: See TracChangeset for help on using the changeset viewer.