summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/eng_notation.py
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2020-10-05 20:35:38 -0400
committerClayton Smith <argilo@gmail.com>2020-10-05 20:35:38 -0400
commit671b785c3b09769234c43476ae50e3a1ca75df4a (patch)
treebc62ab936bce6f1cebbffee1725caa518f94ac31 /gnuradio-runtime/python/gnuradio/eng_notation.py
parent4b402404e152ede29cfaa5c0648bdfb5d327038b (diff)
runtime: remove six
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/eng_notation.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/eng_notation.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gnuradio-runtime/python/gnuradio/eng_notation.py b/gnuradio-runtime/python/gnuradio/eng_notation.py
index 951f79862a..adf6e9572c 100644
--- a/gnuradio-runtime/python/gnuradio/eng_notation.py
+++ b/gnuradio-runtime/python/gnuradio/eng_notation.py
@@ -10,9 +10,6 @@
Display numbers as strings using engineering notation.
"""
-import six
-
-
scale_factor = {}
scale_factor['E'] = 1e18
scale_factor['P'] = 1e15
@@ -56,7 +53,7 @@ def num_to_str (n, precision=6):
def str_to_num (value):
'''Convert a string in engineering notation to a number. E.g., '15m' -> 15e-3'''
try:
- if not isinstance(value, six.string_types):
+ if not isinstance(value, str):
raise TypeError("Value must be a string")
scale = 1.0
suffix = value[-1]