Skip to content

Commit

Permalink
Fix linter warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshw5 committed Mar 4, 2015
1 parent aece24d commit 60471b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyfaidx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class Faidx(object):
""" A python implementation of samtools faidx FASTA indexing """
def __init__(self, filename, default_seq=None, key_function=None,
as_raw=False, strict_bounds=False, read_ahead=None,
mutable=False, split_char=None, filt_function=None)):
mutable=False, split_char=None, filt_function=None):
"""
filename: name of fasta file
key_function: optional callback function which should return a unique
Expand Down Expand Up @@ -257,15 +257,15 @@ def check_bad_lines(rname, bad_lines, i):
raise FastaIndexingError("Line length of fasta"
" file is not "
"consistent! "
"Inconsistent line found in >{0} at "
"line {1:n}.".format(rname, bad_lines[0] + 1))
"Inconsistent line found in >{0} at "
"line {1:n}.".format(rname, bad_lines[0] + 1))
elif len(bad_lines) == 1: # check that the line is previous line
if bad_lines[0] + 1 != i:
raise FastaIndexingError("Line length of fasta"
" file is not "
"consistent! "
"Inconsistent line found in >{0} at "
"line {1:n}.".format(rname, bad_lines[0] + 1))
"Inconsistent line found in >{0} at "
"line {1:n}.".format(rname, bad_lines[0] + 1))

with open(self.filename, 'r') as fastafile:
with open(self.indexname, 'w') as indexfile:
Expand Down

0 comments on commit 60471b6

Please sign in to comment.