diff -burN OpenRTM-aist-Python-0.4.1.orig/OpenRTM/CorbaPort.py OpenRTM-aist-Python-0.4.1/OpenRTM/CorbaPort.py --- OpenRTM-aist-Python-0.4.1.orig/OpenRTM/CorbaPort.py 2008-10-30 13:34:51.000000000 +0900 +++ OpenRTM-aist-Python-0.4.1/OpenRTM/CorbaPort.py 2008-10-30 13:35:22.000000000 +0900 @@ -431,7 +431,7 @@ self._len = len(cons) def __call__(self, nv): - for i in range(self._cons): + for i in range(self._len): name_ = nv.name if self._cons[i].name == name_: self._cons[i].consumer.releaseObject() diff -burN OpenRTM-aist-Python-0.4.1.orig/OpenRTM/Properties.py OpenRTM-aist-Python-0.4.1/OpenRTM/Properties.py --- OpenRTM-aist-Python-0.4.1.orig/OpenRTM/Properties.py 2008-10-30 13:34:52.000000000 +0900 +++ OpenRTM-aist-Python-0.4.1/OpenRTM/Properties.py 2008-10-30 13:35:16.000000000 +0900 @@ -765,8 +765,7 @@ if _str[0] == "#" or _str[0] == "!" or _str[0] == "\n": continue - if _str[-1] == "\n": - _str = _str[0:len(_str)-1] + _str = _str.rstrip('\r\n') if _str[len(_str)-1] == "\\" and not OpenRTM.isEscaped(_str, len(_str)-1): #_str = _str[0:len(_str)-1]