summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui/range.py.cmakein
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/python/qtgui/range.py.cmakein')
-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: