Skip to content

Commit

Permalink
extractor_flowgraph: don't use distutils. Closes #193
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider42 committed Jul 27, 2024
1 parent c3b7db9 commit c71ccae
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions python/iridium_extractor_flowgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@
import time
import platform
import multiprocessing
import distutils.util

def strtobool(val):
val = val.lower()
if val in ('y', 'yes', 't', 'true', 'on', '1'):
return True
elif val in ('n', 'no', 'f', 'false', 'off', '0'):
return False
else:
raise ValueError("invalid truth value %r" % (val,))


class FlowGraph(gr.top_block):
Expand Down Expand Up @@ -312,7 +320,7 @@ def match_gain(gain, gain_names):

pass_tags = False
if 'pass_tags' in d:
pass_tags = bool(distutils.util.strtobool(d['pass_tags']))
pass_tags = strtobool(d['pass_tags'])

timeout = 100
if 'timeout' in d:
Expand Down

0 comments on commit c71ccae

Please sign in to comment.