From 2042560e3facfab7b80afa560032debf8ade0dde Mon Sep 17 00:00:00 2001 From: Ahmet Altay Date: Mon, 11 Jul 2016 13:49:50 -0700 Subject: [PATCH] Fix warnings that came with newly released Pylint (1.6.1) version. --- sdks/python/apache_beam/coders/coder_impl.py | 4 ++-- sdks/python/apache_beam/examples/cookbook/combiners_test.py | 3 --- sdks/python/apache_beam/typehints/trivial_inference.py | 1 - sdks/python/apache_beam/utils/retry.py | 4 ---- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/sdks/python/apache_beam/coders/coder_impl.py b/sdks/python/apache_beam/coders/coder_impl.py index 8ff73bfb2c35..ca64d9c93e7f 100644 --- a/sdks/python/apache_beam/coders/coder_impl.py +++ b/sdks/python/apache_beam/coders/coder_impl.py @@ -28,7 +28,7 @@ import collections -# pylint: disable=wrong-import-order, wrong-import-position +# pylint: disable=wrong-import-order, wrong-import-position, ungrouped-imports try: # Don't depend on the full dataflow sdk to test coders. from apache_beam.transforms.window import WindowedValue @@ -42,7 +42,7 @@ except ImportError: from slow_stream import InputStream as create_InputStream from slow_stream import OutputStream as create_OutputStream -# pylint: enable=wrong-import-order, wrong-import-position +# pylint: enable=wrong-import-order, wrong-import-position, ungrouped-imports class CoderImpl(object): diff --git a/sdks/python/apache_beam/examples/cookbook/combiners_test.py b/sdks/python/apache_beam/examples/cookbook/combiners_test.py index 1b032e4f42fa..56f5e7838a92 100644 --- a/sdks/python/apache_beam/examples/cookbook/combiners_test.py +++ b/sdks/python/apache_beam/examples/cookbook/combiners_test.py @@ -71,6 +71,3 @@ def multiply(values): if __name__ == '__main__': logging.getLogger().setLevel(logging.INFO) unittest.main() - - - diff --git a/sdks/python/apache_beam/typehints/trivial_inference.py b/sdks/python/apache_beam/typehints/trivial_inference.py index c8b2d72a4546..e1fbc4233e48 100644 --- a/sdks/python/apache_beam/typehints/trivial_inference.py +++ b/sdks/python/apache_beam/typehints/trivial_inference.py @@ -415,4 +415,3 @@ def infer_return_type_func(f, input_types, debug=False, depth=0): if debug: print f, id(f), input_types, '->', result return result - diff --git a/sdks/python/apache_beam/utils/retry.py b/sdks/python/apache_beam/utils/retry.py index b4992d464b2f..67cbeb206a19 100644 --- a/sdks/python/apache_beam/utils/retry.py +++ b/sdks/python/apache_beam/utils/retry.py @@ -191,7 +191,3 @@ def wrapper(*args, **kwargs): return wrapper return real_decorator - - - -