shorten output if long lines
This commit is contained in:
2
nando
2
nando
@@ -60,7 +60,7 @@ def print_table(data):
|
||||
cols=row.split("|",4)
|
||||
if len(cols)!=4:
|
||||
continue
|
||||
print(("{0:<"+lengths[0]+"} | {1:<"+lengths[1]+"} | {2:>"+lengths[2]+"} | {3:<"+lengths[3]+"}").format(*cols))
|
||||
print(("{0:<"+lengths[0]+"} | {1:<"+lengths[1]+"} | {2:>"+lengths[2]+"} | {3}").format(*cols))
|
||||
|
||||
def query_ip(sock,opts):
|
||||
sock.sendto("list", (opts.HOST, opts.PORT))
|
||||
|
||||
Reference in New Issue
Block a user