projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: assign non-const version of field_class_variant_option_borrow_user_attributes...
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
component_descriptor.py
diff --git
a/src/bindings/python/bt2/bt2/component_descriptor.py
b/src/bindings/python/bt2/bt2/component_descriptor.py
index 3134886b3d6e9a1e44ab0fc49ddc662f23bc699b..1281560042083c2825e3fbafb216c6f45f3a84ee 100644
(file)
--- a/
src/bindings/python/bt2/bt2/component_descriptor.py
+++ b/
src/bindings/python/bt2/bt2/component_descriptor.py
@@
-26,32
+26,32
@@
import bt2
def _is_source_comp_cls(comp_cls):
def _is_source_comp_cls(comp_cls):
- if isinstance(comp_cls, bt2_component._SourceComponentClass):
+ if isinstance(comp_cls, bt2_component._SourceComponentClass
Const
):
return True
try:
return issubclass(comp_cls, bt2_component._UserSourceComponent)
return True
try:
return issubclass(comp_cls, bt2_component._UserSourceComponent)
- except:
+ except
Exception
:
return False
def _is_filter_comp_cls(comp_cls):
return False
def _is_filter_comp_cls(comp_cls):
- if isinstance(comp_cls, bt2_component._FilterComponentClass):
+ if isinstance(comp_cls, bt2_component._FilterComponentClass
Const
):
return True
try:
return issubclass(comp_cls, bt2_component._UserFilterComponent)
return True
try:
return issubclass(comp_cls, bt2_component._UserFilterComponent)
- except:
+ except
Exception
:
return False
def _is_sink_comp_cls(comp_cls):
return False
def _is_sink_comp_cls(comp_cls):
- if isinstance(comp_cls, bt2_component._SinkComponentClass):
+ if isinstance(comp_cls, bt2_component._SinkComponentClass
Const
):
return True
try:
return issubclass(comp_cls, bt2_component._UserSinkComponent)
return True
try:
return issubclass(comp_cls, bt2_component._UserSinkComponent)
- except:
+ except
Exception
:
return False
return False
This page took
0.023858 seconds
and
4
git commands to generate.