From 1f5b842bd00a3c1936842de782099aaa4509ecf4 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Fri, 31 Oct 2014 01:48:55 +0000 Subject: [PATCH] Fixed a few minor Python errors. --- TODO.txt | 2 -- bin/wee_config_device | 2 +- bin/weewx/abstractstation.py | 3 ++- bin/weewx/drivers/cc3000.py | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/TODO.txt b/TODO.txt index 7562ed38..fa26d427 100644 --- a/TODO.txt +++ b/TODO.txt @@ -28,8 +28,6 @@ using accumulateLeaves, so you can use overrides? Move schemas to the extension that uses them. -Clean up names. dbm? db? archive? database? Why DBBinder.get_binding, -but weewx.database.open_database? diff --git a/bin/wee_config_device b/bin/wee_config_device index 57479984..50c3e343 100644 --- a/bin/wee_config_device +++ b/bin/wee_config_device @@ -36,4 +36,4 @@ def main(): device.configure(config_dict) if __name__=="__main__": - main() + main() diff --git a/bin/weewx/abstractstation.py b/bin/weewx/abstractstation.py index c5e0be55..6a78efba 100644 --- a/bin/weewx/abstractstation.py +++ b/bin/weewx/abstractstation.py @@ -3,6 +3,7 @@ # See the file LICENSE.txt for your full rights. """Abstract base class for hardware.""" +import weewx class AbstractStation(object): """Station drivers should inherit from this class.""" @@ -54,7 +55,7 @@ class DeviceConfigurator(object): def configure(self, config_dict): parser = self.get_parser() self.add_options(parser) - (options, args) = parser.parse_args() + options, _ = parser.parse_args() if options.debug is not None: weewx.debug = options.debug self.do_config(options, config_dict) diff --git a/bin/weewx/drivers/cc3000.py b/bin/weewx/drivers/cc3000.py index bf785f25..4058b535 100644 --- a/bin/weewx/drivers/cc3000.py +++ b/bin/weewx/drivers/cc3000.py @@ -31,7 +31,6 @@ import time import weewx import weewx.abstractstation -import weewx.units DRIVER_VERSION = '0.8' DEFAULT_PORT = '/dev/ttyS0'