Fixed a few minor Python errors.

This commit is contained in:
Tom Keffer
2014-10-31 01:48:55 +00:00
parent 8f6993d631
commit 1f5b842bd0
4 changed files with 3 additions and 5 deletions

View File

@@ -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?

View File

@@ -36,4 +36,4 @@ def main():
device.configure(config_dict)
if __name__=="__main__":
main()
main()

View File

@@ -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)

View File

@@ -31,7 +31,6 @@ import time
import weewx
import weewx.abstractstation
import weewx.units
DRIVER_VERSION = '0.8'
DEFAULT_PORT = '/dev/ttyS0'