MCPcopy Create free account
hub / github.com/chasingboy/Xtools / unique_sort_ipv4

Function unique_sort_ipv4

utils.py:279–284  ·  view source on GitHub ↗
(ips)

Source from the content-addressed store, hash-verified

277
278
279def unique_sort_ipv4(ips):
280 try:
281 ips = sorted(list(set(ips)),key=socket.inet_aton)
282 except:
283 ips = sorted(list(set(ips)))
284 return ips
285
286
287def add_prefix_suffix(text,chars,cmd):

Callers 3

convert_C_to_ipv4Function · 0.85
select_ipv4Function · 0.85
select_ipv4_rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected