Repository: thrift Updated Branches: refs/heads/master c41049445 -> 65d8564e9
THRIFT-3538 python: Removed UnboundMethodType This closes #783 Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/65d8564e Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/65d8564e Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/65d8564e Branch: refs/heads/master Commit: 65d8564e908476f191404164c4db29a0a4434da5 Parents: c410494 Author: Thomas Bartelmess <[email protected]> Authored: Sun Jan 10 11:34:19 2016 -0500 Committer: Roger Meier <[email protected]> Committed: Sun Jan 10 20:25:38 2016 +0100 ---------------------------------------------------------------------- lib/py/src/protocol/TProtocolDecorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/65d8564e/lib/py/src/protocol/TProtocolDecorator.py ---------------------------------------------------------------------- diff --git a/lib/py/src/protocol/TProtocolDecorator.py b/lib/py/src/protocol/TProtocolDecorator.py index 3e9e500..bf50bfa 100644 --- a/lib/py/src/protocol/TProtocolDecorator.py +++ b/lib/py/src/protocol/TProtocolDecorator.py @@ -28,7 +28,7 @@ class TProtocolDecorator(): def __getattr__(self, name): if hasattr(self.protocol, name): member = getattr(self.protocol, name) - if type(member) in [MethodType, UnboundMethodType, FunctionType, LambdaType, BuiltinFunctionType, BuiltinMethodType]: + if type(member) in [MethodType, FunctionType, LambdaType, BuiltinFunctionType, BuiltinMethodType]: return lambda *args, **kwargs: self._wrap(member, args, kwargs) else: return member
