Skip to content

Commit

Permalink
Fix two errors in sff_extract.py detected by flake8 -- either of thes…
Browse files Browse the repository at this point in the history
…e code paths would have thrown an exception and failed prior to this.
  • Loading branch information
dannon committed Jun 16, 2016
1 parent 9d84c0b commit 618c644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/filters/sff_extract.py
Expand Up @@ -231,7 +231,7 @@ def sequences(fileh, header):
while True:
if fposition == header['index_offset']:
# we have to skip the index section
fposition += index_length
fposition += header['index_length']
continue
else:
bytes_read, seq_data = read_sequence(header=header, fileh=fileh,
Expand Down Expand Up @@ -276,7 +276,7 @@ def remove_last_xmltag_in_file(fname, tag=None):

# we check that we're removing the asked tag
if tag is not None and tag != last_tag:
etxt = join('The given xml tag (', tag, ') was not the last one in the file')
etxt = 'The given xml tag (%s) was not the last one in the file' % tag
raise RuntimeError(etxt)

# while we are at it: also remove all white spaces in that line :-)
Expand Down

0 comments on commit 618c644

Please sign in to comment.