[openrtm-commit:03048] r910 - trunk/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 12月 27日 (水) 21:40:36 JST


Author: miyamoto
Date: 2017-12-27 21:40:36 +0900 (Wed, 27 Dec 2017)
New Revision: 910

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/Properties.py
Log:
[compat,bugfix,->RELENG_1_2] fixed bug.

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/Properties.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/Properties.py	2017-12-27 01:30:22 UTC (rev 909)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/Properties.py	2017-12-27 12:40:36 UTC (rev 910)
@@ -240,7 +240,6 @@
     keys = prop.propertyNames()
 
     for key in keys:
-      node = None
       node = prop.getNode(key)
       if node:
         self.setDefault(key, node.default_value)
@@ -391,7 +390,6 @@
       #keys = str.split(key, ".")
       self.split(key, ".", keys)
 
-      node = None
       node = self._getNode(keys, 0, self)
       if node:
         if node.value:
@@ -427,7 +425,7 @@
     keys = []
     #keys = str.split(key, ".")
     self.split(key, ".", keys)
-    node = None
+
     node = self._getNode(keys, 0, self)
     if node:
       return node.default_value



More information about the openrtm-commit mailing list