Skip to content

Commit c049f68

Browse files
committed
rm some f-strigs
1 parent 4eeeaf8 commit c049f68

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

qiita_client/qiita_client.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,9 @@ def _process_files_per_sample_fastq(self, files, prep_info,
616616
revs = sorted(
617617
files['raw_reverse_seqs'], key=lambda x: x['filepath'])
618618
if len(fwds) != len(revs):
619-
raise ValueError(f'The fwd ({len(fwds)}) and rev ({len(revs)})'
620-
' files should be of the same length')
619+
raise ValueError('The fwd (' + str(len(fwds)) ') and rev (' +
620+
str(len(revs)) + ') files should be of the '
621+
'same length')
621622

622623
run_prefixes = prep_info['run_prefix'].to_dict()
623624

@@ -636,15 +637,15 @@ def _process_files_per_sample_fastq(self, files, prep_info,
636637
run_prefix = rp
637638
sample_name = sn
638639
elif fwd_fn.startswith(rp) and run_prefix is not None:
639-
raise ValueError(
640-
f'Multiple run prefixes match this fwd read: {fwd_fn}')
640+
raise ValueError('Multiple run prefixes match this fwd '
641+
'read: %s' % fwd_fn)
641642

642643
if run_prefix is None:
643644
raise ValueError(
644-
f'No run prefix matching this fwd read: {fwd_fn}')
645+
'No run prefix matching this fwd read: %s' % fwd_fn)
645646
if run_prefix in used_prefixes:
646647
raise ValueError(
647-
f'Run prefix matches multiple fwd reads: {run_prefix}')
648+
f'Run prefix matches multiple fwd reads: %s' % run_prefix)
648649
used_prefixes.append(run_prefix)
649650

650651
if rev is not None:
@@ -656,7 +657,7 @@ def _process_files_per_sample_fastq(self, files, prep_info,
656657
if not rev_fn.startswith(run_prefix):
657658
raise ValueError(
658659
'Reverse read does not match run prefix. run_prefix: '
659-
f'{run_prefix}; files: {fwd_fn} / {rev_fn}')
660+
'%s; files: %s / %s') % (run_prefix, fwd_fn, rev_fn)
660661

661662
used_prefixes.append(run_prefix)
662663

0 commit comments

Comments
 (0)