Skip to content

Commit

Permalink
Merge pull request #4446 from dannon/memepsp_formatting
Browse files Browse the repository at this point in the history
Fix E201 errors (spaces in parens) in new memepsp datatype
  • Loading branch information
nsoranzo committed Aug 17, 2017
2 parents cca1f9e + df442ea commit 7ef099f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/datatypes/sequence.py
Expand Up @@ -1215,7 +1215,7 @@ class MemePsp(Sequence):
"""Class representing MEME Position Specific Priors"""
file_ext = "memepsp"

def sniff( self, filename ):
def sniff(self, filename):
"""
The format of an entry in a PSP file is:
Expand Down Expand Up @@ -1251,10 +1251,10 @@ def floats_verified(l):
return True
line = line.strip()
if line:
if line.startswith( '>' ):
if line.startswith('>'):
# The line must not be blank, nor start with '>'
line = fh.readline().strip()
if line == '' or line.startswith( '>' ):
if line == '' or line.startswith('>'):
return False
# All items within the line must be floats.
if not floats_verified(line):
Expand Down

0 comments on commit 7ef099f

Please sign in to comment.