From 67e955123241fa4f168a21b4585ace364d4c0d44 Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Fri, 2 Jun 2017 14:35:18 -0500 Subject: pep8 style changes Fixed pep8 warnings in gen-fan-zone-defs.py Change-Id: I78472a1e9ce1bd6eb14e0352398c6470fa144604 Signed-off-by: Gunnar Mills --- control/gen-fan-zone-defs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'control/gen-fan-zone-defs.py') diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py index 82eecb4..293bb02 100755 --- a/control/gen-fan-zone-defs.py +++ b/control/gen-fan-zone-defs.py @@ -197,7 +197,7 @@ def getFansInZone(zone_num, profiles, fan_data): if zone_num != f['cooling_zone']: continue - #'cooling_profile' is optional (use 'all' instead) + # 'cooling_profile' is optional (use 'all' instead) if f.get('cooling_profile') is None: profile = "all" else: @@ -275,16 +275,16 @@ def buildZoneData(zone_data, fan_data, events_data, zone_conditions_data): for z in group['zones']: zone = {} - #'zone' is required - if (not 'zone' in z) or (z['zone'] is None): + # 'zone' is required + if ('zone' not in z) or (z['zone'] is None): sys.exit("Missing fan zone number in " + zone_yaml) zone['num'] = z['zone'] zone['full_speed'] = z['full_speed'] - #'cooling_profiles' is optional (use 'all' instead) - if (not 'cooling_profiles' in z) or \ + # 'cooling_profiles' is optional (use 'all' instead) + if ('cooling_profiles' not in z) or \ (z['cooling_profiles'] is None): profiles = ["all"] else: -- cgit v1.2.1