[pytango] 471/483: Fix bug in attribute creaton when giving callable fget parameter
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:15:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.
commit 6b1f37a6bd4843ffa4b99b8f99e46f5db18d1c69
Author: coutinho <coutinho at esrf.fr>
Date: Fri Apr 17 12:49:13 2015 +0200
Fix bug in attribute creaton when giving callable fget parameter
---
src/boost/python/server.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/boost/python/server.py b/src/boost/python/server.py
index 69fbe49..2ca26ff 100644
--- a/src/boost/python/server.py
+++ b/src/boost/python/server.py
@@ -582,8 +582,7 @@ class attribute(AttrData):
self.fget = fget
if 'doc' not in kwargs and 'description' not in kwargs:
kwargs['doc'] = fget.__doc__
- else:
- kwargs['fget'] = fget
+ kwargs['fget'] = fget
super(attribute, self).__init__(name, class_name)
if 'dtype' in kwargs:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list