diff options
author | Clayton Smith <argilo@gmail.com> | 2020-10-05 20:35:38 -0400 |
---|---|---|
committer | Clayton Smith <argilo@gmail.com> | 2020-10-05 20:35:38 -0400 |
commit | 671b785c3b09769234c43476ae50e3a1ca75df4a (patch) | |
tree | bc62ab936bce6f1cebbffee1725caa518f94ac31 /gnuradio-runtime/python/gnuradio/eng_notation.py | |
parent | 4b402404e152ede29cfaa5c0648bdfb5d327038b (diff) |
runtime: remove six
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/eng_notation.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/eng_notation.py | 5 |
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] |