diff options
author | imarom <imarom@cisco.com> | 2016-03-23 13:34:07 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-03-23 13:34:07 +0200 |
commit | 552aaf480a7b994beb33b49fceccfcc9923e918d (patch) | |
tree | ef089094ca356edcccd4b2b6bbe7b29e4ec9d955 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py | |
parent | 2bcbca455b063e3ef6f90e85a1fac4994a0e6a51 (diff) |
console now supports python3
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py index 3af20f17..e5305c78 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py @@ -26,6 +26,8 @@ class RC(): def __nonzero__ (self): return self.good() + def __bool__ (self): + return self.good() def add (self, rc): self.rc_list += rc.rc_list |