From 4cc8ea9be192951d977e4f8f76a9b7ae05d0bb7a Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Wed, 18 Apr 2018 23:43:37 -0700 Subject: [PATCH] Eliminate old-style-class suppression --- .pylintrc-tests | 1 - src/python/grpcio_tests/tests/_result.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pylintrc-tests b/.pylintrc-tests index 5279ecf15eb..30c2d7c3c16 100644 --- a/.pylintrc-tests +++ b/.pylintrc-tests @@ -39,7 +39,6 @@ disable= too-many-public-methods, too-many-locals, redefined-variable-type, - old-style-class, redefined-outer-name, bare-except, broad-except, diff --git a/src/python/grpcio_tests/tests/_result.py b/src/python/grpcio_tests/tests/_result.py index 9907c4e1f9f..b105f18e78c 100644 --- a/src/python/grpcio_tests/tests/_result.py +++ b/src/python/grpcio_tests/tests/_result.py @@ -46,7 +46,7 @@ class CaseResult( None. """ - class Kind: + class Kind(object): UNTESTED = 'untested' RUNNING = 'running' ERROR = 'error' @@ -257,7 +257,7 @@ class CoverageResult(AugmentedResult): #coverage.Coverage().combine() -class _Colors: +class _Colors(object): """Namespaced constants for terminal color magic numbers.""" HEADER = '\033[95m' INFO = '\033[94m'