Comparisons to singletons like None should always be done with is or is not, never the equality operators.

This commit is contained in:
deix
2017-08-28 17:51:27 +02:00
parent d9330ef698
commit 00e5246f96
12 changed files with 31 additions and 31 deletions

View File

@@ -82,10 +82,10 @@ class Interface(object):
from Process import Process
import re
if iface == None:
if iface is None:
Configuration.initialize()
iface = Configuration.interface
if iface == None:
if iface is None:
raise Exception('Interface must be defined (-i)')
output = Process(['ifconfig', iface]).stdout()