1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

python3: 2to3 changes

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2019-12-17 16:55:49 +01:00
parent 35681c0608
commit 3b01ed7618
41 changed files with 479 additions and 488 deletions

View File

@@ -127,7 +127,7 @@ class dhcp(Addon, moduleBase):
if timeout:
time.sleep(1)
except Exception, e:
except Exception as e:
self.log_error(str(e), ifaceobj)
def _down_stale_dhcp_config(self, ifaceobj, family, dhclientX_running):
@@ -201,7 +201,7 @@ class dhcp(Addon, moduleBase):
def get_ops(self):
""" returns list of ops supported by this module """
return self._run_ops.keys()
return list(self._run_ops.keys())
def run(self, ifaceobj, operation, query_ifaceobj=None, **extra_args):
""" run dhcp configuration on the interface object passed as argument