Skip to content

Commit

Permalink
Corrected parse_fpga warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Prozesky committed Aug 25, 2016
1 parent d4334b5 commit 7d629f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ def parse_fpg(filename):
# some versions of mlib_devel may mistakenly have put spaces
# as delimiters where tabs should have been used. Rectify that
# here.
if line.startswith('?meta '):
LOGGER.warn('An old version of mlib_devel generated %s. Please '
'update. Meta fields are seperated by spaces, '
'should be tabs.' % filename)
line = line.replace(' ', '\t')
LOGGER.warn('An old version of mlib_devel generated %s. Please '
'update.' % filename)
# and carry on as usual.
line = line.replace('\_', ' ').replace('?meta', '')
line = line.replace('\n', '').lstrip().rstrip()
Expand Down Expand Up @@ -324,7 +326,7 @@ def jobfunc(resultq, fpga):
thread_list = []
for fpga_ in fpga_list:
thread = threading.Thread(target=jobfunc, args=(result_queue, fpga_))
thread.daemon = True
thread.setDaemon(True)
thread.start()
thread_list.append(thread)
for thread_ in thread_list:
Expand Down

0 comments on commit 7d629f3

Please sign in to comment.