From a248e114de9f003ed181cc8660f63049a0ba5ce4 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 25 Feb 2019 19:29:00 +0100 Subject: [PATCH] simplify netmaskoption --- tiramisu/option/netmaskoption.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tiramisu/option/netmaskoption.py b/tiramisu/option/netmaskoption.py index ce6e74c..cc7af39 100644 --- a/tiramisu/option/netmaskoption.py +++ b/tiramisu/option/netmaskoption.py @@ -84,7 +84,7 @@ class NetmaskOption(StrOption): val_netmask, val_ip = vals opt_netmask, opt_ip = opts ip = ip_interface('{0}/{1}'.format(val_ip, val_netmask)) - if not _cidr and current_opt == opt_ip + if not _cidr and current_opt == opt_ip: if ip.ip == ip.network.network_address: raise ValueError( _('this is a network with netmask "{0}" ("{1}")' '').format(val_netmask, @@ -100,5 +100,5 @@ class NetmaskOption(StrOption): opt_ip.impl_get_display_name())) elif ip.ip == ip.network.broadcast_address: raise ValueError(_('IP "{0}" ("{1}") is the broadcast' - '')format(val_ip, - opt_ip.impl_get_display_name())) + '').format(val_ip, + opt_ip.impl_get_display_name()))