diff options
author | 2016-03-21 10:43:48 -0700 | |
---|---|---|
committer | 2016-03-21 10:43:48 -0700 | |
commit | 20792927fed4b5096171501057dd279d1ace918b (patch) | |
tree | f307325d28c164e7c365eb20da875247a154821c /src/python/grpcio/tests/unit/_links/_proto_scenarios.py | |
parent | bb644e994708c008f7cf659b01e3fd0c27d5cb6f (diff) | |
parent | 1abda1f02ba2412ae845f1427370c52cef821756 (diff) |
Merge pull request #5651 from leifurhauks/py3_metaclasses
specify metaclasses in a py3-compatible way
Diffstat (limited to 'src/python/grpcio/tests/unit/_links/_proto_scenarios.py')
-rw-r--r-- | src/python/grpcio/tests/unit/_links/_proto_scenarios.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/python/grpcio/tests/unit/_links/_proto_scenarios.py b/src/python/grpcio/tests/unit/_links/_proto_scenarios.py index f69ff51b16..acd4891390 100644 --- a/src/python/grpcio/tests/unit/_links/_proto_scenarios.py +++ b/src/python/grpcio/tests/unit/_links/_proto_scenarios.py @@ -1,4 +1,4 @@ -# Copyright 2015, Google Inc. +# Copyright 2015-2016, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -32,13 +32,14 @@ import abc import threading +import six + from tests.unit._junkdrawer import math_pb2 from tests.unit.framework.common import test_constants -class ProtoScenario(object): +class ProtoScenario(six.with_metaclass(abc.ABCMeta)): """An RPC test scenario using protocol buffers.""" - __metaclass__ = abc.ABCMeta @abc.abstractmethod def group_and_method(self): |