Skip to content

Commit 7d629f3

Browse files
author
Paul Prozesky
committed
Corrected parse_fpga warning
1 parent d4334b5 commit 7d629f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/utils.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ def parse_fpg(filename):
6060
# some versions of mlib_devel may mistakenly have put spaces
6161
# as delimiters where tabs should have been used. Rectify that
6262
# here.
63+
if line.startswith('?meta '):
64+
LOGGER.warn('An old version of mlib_devel generated %s. Please '
65+
'update. Meta fields are seperated by spaces, '
66+
'should be tabs.' % filename)
6367
line = line.replace(' ', '\t')
64-
LOGGER.warn('An old version of mlib_devel generated %s. Please '
65-
'update.' % filename)
6668
# and carry on as usual.
6769
line = line.replace('\_', ' ').replace('?meta', '')
6870
line = line.replace('\n', '').lstrip().rstrip()
@@ -324,7 +326,7 @@ def jobfunc(resultq, fpga):
324326
thread_list = []
325327
for fpga_ in fpga_list:
326328
thread = threading.Thread(target=jobfunc, args=(result_queue, fpga_))
327-
thread.daemon = True
329+
thread.setDaemon(True)
328330
thread.start()
329331
thread_list.append(thread)
330332
for thread_ in thread_list:

0 commit comments

Comments
 (0)