summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui
diff options
context:
space:
mode:
authorHåkon Vågsether <haakonsv@gmail.com>2020-01-10 23:20:55 -0800
committerMartin Braun <martin.braun@ettus.com>2020-01-11 21:53:17 -0800
commitb2c845c70249a64a177bb592bfd7c61f1052d2ec (patch)
treedf3257c2554311215614b9fb43985979d104413c /gr-qtgui/python/qtgui
parent5146f77bda54d8defa61c2c488f0cb8f819a817a (diff)
qtgui: Replace "is not" with "!=" to get rid of warning
Diffstat (limited to 'gr-qtgui/python/qtgui')
-rwxr-xr-xgr-qtgui/python/qtgui/range.py.cmakein2
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: