lib: plugin-dev.h: rename `MESSAGE_ITERATOR` -> `MESSAGE_ITERATOR_CLASS`
[babeltrace.git] / src / bindings / python / bt2 / bt2 / component_descriptor.py
index 3134886b3d6e9a1e44ab0fc49ddc662f23bc699b..1281560042083c2825e3fbafb216c6f45f3a84ee 100644 (file)
@@ -26,32 +26,32 @@ import bt2
 
 
 def _is_source_comp_cls(comp_cls):
-    if isinstance(comp_cls, bt2_component._SourceComponentClass):
+    if isinstance(comp_cls, bt2_component._SourceComponentClassConst):
         return True
 
     try:
         return issubclass(comp_cls, bt2_component._UserSourceComponent)
-    except:
+    except Exception:
         return False
 
 
 def _is_filter_comp_cls(comp_cls):
-    if isinstance(comp_cls, bt2_component._FilterComponentClass):
+    if isinstance(comp_cls, bt2_component._FilterComponentClassConst):
         return True
 
     try:
         return issubclass(comp_cls, bt2_component._UserFilterComponent)
-    except:
+    except Exception:
         return False
 
 
 def _is_sink_comp_cls(comp_cls):
-    if isinstance(comp_cls, bt2_component._SinkComponentClass):
+    if isinstance(comp_cls, bt2_component._SinkComponentClassConst):
         return True
 
     try:
         return issubclass(comp_cls, bt2_component._UserSinkComponent)
-    except:
+    except Exception:
         return False
 
 
This page took 0.028261 seconds and 4 git commands to generate.