diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2020-01-10 23:20:55 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-11 21:53:17 -0800 |
commit | b2c845c70249a64a177bb592bfd7c61f1052d2ec (patch) | |
tree | df3257c2554311215614b9fb43985979d104413c /gr-qtgui/python/qtgui | |
parent | 5146f77bda54d8defa61c2c488f0cb8f819a817a (diff) |
qtgui: Replace "is not" with "!=" to get rid of warning
Diffstat (limited to 'gr-qtgui/python/qtgui')
-rwxr-xr-x | gr-qtgui/python/qtgui/range.py.cmakein | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-qtgui/python/qtgui/range.py.cmakein b/gr-qtgui/python/qtgui/range.py.cmakein index e49da506e1..b976bdb9d2 100755 --- a/gr-qtgui/python/qtgui/range.py.cmakein +++ b/gr-qtgui/python/qtgui/range.py.cmakein @@ -38,7 +38,7 @@ class Range(object): def find_precision(self): # Get the decimal part of the step temp = str(float(self.step) - int(self.step))[2:] - precision = len(temp) if temp is not '0' else 0 + precision = len(temp) if temp != '0' else 0 precision = min(precision, 13) if precision == 0 and self.max < 100: |