Fix PEP8 E713 - test for membership should be "not in"

This commit is contained in:
Pedro Algarvio 2014-06-06 11:21:15 +01:00
parent 02e8b01288
commit 5eea0f6208

View File

@ -178,7 +178,7 @@ def parse_zone(zonefile=None, zone=None):
if comps[2] == 'NS':
zonedict.setdefault('NS', []).append(comps[3])
elif comps[2] == 'MX':
if not 'MX' in zonedict.keys():
if 'MX' not in zonedict.keys():
zonedict.setdefault('MX', []).append({'priority': comps[3],
'host': comps[4]})
else: