Removing "global" declaration from if block

In python an "if" block doesn't change the scope. So, global not needed as it was creating an warning.
This commit is contained in:
wilderrodrigues 2014-11-20 08:05:43 +01:00
parent 185975f6ac
commit 099add4fd6
1 changed files with 0 additions and 1 deletions

View File

@ -156,7 +156,6 @@ def notify_provisioning_done(mac):
if __name__ == '__main__':
global server
server = Server()
shell("iptables-save | grep -- '-A INPUT -i eth0 -p tcp -m tcp --dport 10086 -j ACCEPT' > /dev/null || iptables -I INPUT -i eth0 -p tcp -m tcp --dport 10086 -j ACCEPT")
app.run(host='0.0.0.0', port=10086, debug=True)