elif is better than else if!

This commit is contained in:
titoko 2013-06-29 15:57:47 +02:00
parent 726c16ab70
commit 74a5caa7fc

View file

@ -172,7 +172,7 @@ def update_yml(port=None, protocol=None, mode=None, ipv6=None, upnp=False):
if port not in firewall[ip][protocol]: if port not in firewall[ip][protocol]:
firewall[ip][protocol].append(port) firewall[ip][protocol].append(port)
else if upnp: elif upnp:
if port not in firewall[ip]['upnp'][protocol]: if port not in firewall[ip]['upnp'][protocol]:
firewall[ip]['upnp'][protocol].append(port) firewall[ip]['upnp'][protocol].append(port)
else: else: