2
0
mirror of https://github.com/mhinz/neovim-remote synced 2024-11-11 13:10:34 +00:00

--serverlist: don't print empty lines

This commit is contained in:
Marco Hinz 2017-06-30 02:18:58 +02:00
parent af4103a16a
commit fa9ecbcc71
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -314,7 +314,8 @@ def print_sockaddrs():
for conn in proc.connections('inet4'):
sockaddrs.insert(0, ':'.join(map(str, conn.laddr)))
for conn in proc.connections('unix'):
sockaddrs.insert(0, conn.laddr)
if conn.laddr:
sockaddrs.insert(0, conn.laddr)
for addr in sorted(sockaddrs):
print(addr)