diff options
Diffstat (limited to 'lib/taurus/core/util/log.py')
-rw-r--r-- | lib/taurus/core/util/log.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/taurus/core/util/log.py b/lib/taurus/core/util/log.py index 0c7ab904..624802d0 100644 --- a/lib/taurus/core/util/log.py +++ b/lib/taurus/core/util/log.py @@ -221,7 +221,7 @@ class LogIt(object): log_obj.log(self._level, out_msg, exc_info=exc_info) raise out_msg += " %s" % fname - if not ret is None and self._showret: + if ret is not None and self._showret: out_msg += " = %s" % str(ret) if self._col_limit and len(out_msg) > self._col_limit: out_msg = "%s [...]" % out_msg[: self._col_limit - 6] @@ -381,7 +381,7 @@ class PrintIt(object): print(out_msg) raise out_msg += " %s" % fname - if not ret is None and self._showret: + if ret is not None and self._showret: out_msg += " = %s" % str(ret) print(out_msg) print() |