summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-23 13:34:07 +0200
committerimarom <imarom@cisco.com>2016-03-23 13:34:07 +0200
commit552aaf480a7b994beb33b49fceccfcc9923e918d (patch)
treeef089094ca356edcccd4b2b6bbe7b29e4ec9d955 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py
parent2bcbca455b063e3ef6f90e85a1fac4994a0e6a51 (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.py2
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