[pytango] 295/483: make memorized case insensitive

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:52 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 e9be871f394d849b6913f79ae8b3a4950f775d2a
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Wed Nov 13 15:45:22 2013 +0000

    make memorized case insensitive
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@24190 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 src/boost/python/attr_data.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/boost/python/attr_data.py b/src/boost/python/attr_data.py
index 3842a32..6dd7ed8 100644
--- a/src/boost/python/attr_data.py
+++ b/src/boost/python/attr_data.py
@@ -264,10 +264,11 @@ class AttrData(object):
                      "attribute %s in class %s\nAttribute information for "
                      "polling period is not an integer" % (attr_name, name))
         
-        self.memorized = extra_info.get("memorized", "false")
-        if self.memorized == "true":
-            self.memorized, self.hw_memorized = True, True
-        elif self.memorized == "true_without_hard_applied":
+        memorized = extra_info.get("memorized", "false").lower()
+        if memorized == "true":
+            self.memorized = True
+            self.hw_memorized = True
+        elif memorized == "true_without_hard_applied":
             self.memorized = True
         else:
             self.memorized = False

-- 
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