From 6b2502d244b4bb365231791d86904a54816bd73d Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Wed, 27 Jun 2018 11:50:52 -0600 Subject: [PATCH] Linting fixes --- geomagio/Controller.py | 2 +- test/TimeseriesUtility_test.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/geomagio/Controller.py b/geomagio/Controller.py index 3b8f3c915..346070be5 100644 --- a/geomagio/Controller.py +++ b/geomagio/Controller.py @@ -362,7 +362,7 @@ def get_output_factory(args): try: # python 3 output_stream = sys.stdout.buffer - except: + except AttributeError: # python 2 output_stream = sys.stdout elif args.output_url is not None: diff --git a/test/TimeseriesUtility_test.py b/test/TimeseriesUtility_test.py index e654eec03..8f1158805 100644 --- a/test/TimeseriesUtility_test.py +++ b/test/TimeseriesUtility_test.py @@ -36,6 +36,7 @@ def test_get_stream_gaps(): # no gaps in Z channel assert_equals(len(gaps['Z']), 0) + def test_get_stream_gaps_channels(): """TimeseriesUtility_test.test_get_stream_gaps_channels() @@ -56,6 +57,7 @@ def test_get_stream_gaps_channels(): assert_equals('H' in gaps, False) assert_equals(len(gaps['Z']), 0) + def test_get_trace_gaps(): """TimeseriesUtility_test.test_get_trace_gaps() -- GitLab