[openrtm-commit:02455] r797 - trunk/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 2月 17日 (金) 15:01:45 JST


Author: miyamoto
Date: 2017-02-17 15:01:45 +0900 (Fri, 17 Feb 2017)
New Revision: 797

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamBase.py
   trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamFile.py
Log:
[compat,bugfix] Modified LogstreamBase.py

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamBase.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamBase.py	2017-02-17 05:27:13 UTC (rev 796)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamBase.py	2017-02-17 06:01:45 UTC (rev 797)
@@ -69,7 +69,7 @@
   #
   # @endif
   #
-  def __del__(self, CorbaConsumer=OpenRTM_aist.CorbaConsumer):
+  def __del__(self):
     pass
     
 

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamFile.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamFile.py	2017-02-17 05:27:13 UTC (rev 796)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamFile.py	2017-02-17 06:01:45 UTC (rev 797)
@@ -72,7 +72,7 @@
   #
   # @endif
   #
-  def __del__(self, CorbaConsumer=OpenRTM_aist.CorbaConsumer):
+  def __del__(self):
     pass
     
 
@@ -128,7 +128,8 @@
     for f in files:
       self.addHandler(f)
 
-    
+    if len(self.handlers) == 0:
+      return False
         
     return True
 



openrtm-commit メーリングリストの案内