diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-04-18 23:43:37 -0700 |
---|---|---|
committer | Mehrdad Afshari <mehrdada@users.noreply.github.com> | 2018-04-19 10:39:38 -0700 |
commit | 4cc8ea9be192951d977e4f8f76a9b7ae05d0bb7a (patch) | |
tree | 2da34549f26e2e365cec8499c5259b6a2f2ffb51 | |
parent | fc3bb7c1f920a5d52fa6b610ef5068d42dbafdb2 (diff) |
Eliminate old-style-class suppression
-rw-r--r-- | .pylintrc-tests | 1 | ||||
-rw-r--r-- | src/python/grpcio_tests/tests/_result.py | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/.pylintrc-tests b/.pylintrc-tests index 5279ecf15e..30c2d7c3c1 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 9907c4e1f9..b105f18e78 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' |