From 947a4ec5859a9080c893d8b727a421113c0619c2 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 20 Jun 2018 10:44:48 -0700 Subject: gpscap.py: Fix for PEP8 --- gpscap.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gpscap.py') diff --git a/gpscap.py b/gpscap.py index 28ce0f69..2451240f 100644 --- a/gpscap.py +++ b/gpscap.py @@ -115,8 +115,8 @@ class GPSDictionary(configparser.RawConfigParser): if self.has_option(dev, "techdoc"): namefield = "%s" \ % (self.get(dev, "techdoc"), dev) - if ((self.has_option(dev, "discontinued") - and self.getboolean(dev, "discontinued"))): + if ((self.has_option(dev, "discontinued") and + self.getboolean(dev, "discontinued"))): namefield = namefield + " " @@ -142,8 +142,8 @@ class GPSDictionary(configparser.RawConfigParser): "alt='Regression-test icon'>" else: testfield += tested - if ((self.has_option(dev, "configurable") - and self.get(dev, "configurable") == 'insane')): + if ((self.has_option(dev, "configurable") and + self.get(dev, "configurable") == 'insane')): testfield += "" @@ -164,8 +164,8 @@ class GPSDictionary(configparser.RawConfigParser): elif self.get(dev, "rating") == "broken": testfield += "Bomb icon" - if ((self.has_option(dev, "usbchip") - and self.get(dev, "usbchip") in hotpluggables)): + if ((self.has_option(dev, "usbchip") and + self.get(dev, "usbchip") in hotpluggables)): testfield += "Hotplug icon" ofp.write("%s\n" % testfield) @@ -173,8 +173,8 @@ class GPSDictionary(configparser.RawConfigParser): if self.has_option(dev, "nmea"): nmea = self.get(dev, "nmea") ofp.write("%s\n" % nmea) - if ((self.has_option(dev, "pps") - and self.get(dev, "pps") == "True")): + if ((self.has_option(dev, "pps") and + self.get(dev, "pps") == "True")): pps_accuracy = time_offset = "" if self.has_option(dev, "pps_accuracy"): pps_accuracy = self.get(dev, "pps_accuracy") -- cgit v1.2.1