Skip to content

Commit

Permalink
Revert to xmlrpclib implementation of _Method.__getattr__
Browse files Browse the repository at this point in the history
  • Loading branch information
efokschaner committed Sep 27, 2015
1 parent e09bd38 commit 812a683
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jsonrpclib/jsonrpc.py
Expand Up @@ -276,11 +276,7 @@ def __call__(self, *args, **kwargs):
return self.__send(self.__name, kwargs)

def __getattr__(self, name):
self.__name = '%s.%s' % (self.__name, name)
return self
# The old method returned a new instance, but this seemed wasteful.
# The only thing that changes is the name.
#return _Method(self.__send, "%s.%s" % (self.__name, name))
return _Method(self.__send, "%s.%s" % (self.__name, name))

def __repr__(self):
return '<{} "{}">'.format(self.__class__.__name__, self.__name)
Expand Down

0 comments on commit 812a683

Please sign in to comment.