simpler way to be python3.4 compatibble

This commit is contained in:
Solvik Blum 2019-08-08 10:42:43 +02:00
parent a22b648b8a
commit 896a011173
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47

View file

@ -73,8 +73,6 @@ class Ethtool():
def parse(self): def parse(self):
if which('ethtool') is None: if which('ethtool') is None:
return None return None
# TODO >= py35: return {**a, **b} output = self._parse_ethtool_output()
return merge_two_dicts( output.update(self._parse_ethtool_module_output())
self._parse_ethtool_output(), return output
self._parse_ethtool_module_output()
)