mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c4d3df0ed8
commit
9e483580b6
@ -322,6 +322,7 @@ def _get_adapters():
|
|||||||
Adapter = namedtuple('Adapter', 'name if_index if_index6 friendly_name status transmit_speed receive_speed')
|
Adapter = namedtuple('Adapter', 'name if_index if_index6 friendly_name status transmit_speed receive_speed')
|
||||||
|
|
||||||
def adapters():
|
def adapters():
|
||||||
|
''' A list of adapters on this machine '''
|
||||||
ans = []
|
ans = []
|
||||||
smap = {1:'up', 2:'down', 3:'testing', 4:'unknown', 5:'dormant', 6:'not-present', 7:'lower-layer-down'}
|
smap = {1:'up', 2:'down', 3:'testing', 4:'unknown', 5:'dormant', 6:'not-present', 7:'lower-layer-down'}
|
||||||
with _get_adapters() as p_adapters_list:
|
with _get_adapters() as p_adapters_list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user