Skip to content

Commit

Permalink
changed to test first 4 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jjkoehorst committed Aug 15, 2016
1 parent d072a6b commit 6792645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/triples.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class HDT( binary.Binary, Triples ):

def sniff( self, filename ):
with open(filename, "rb") as f:
if f.readline( 1024 ).startswith("$HDT"):
if f.read(4) == "$HDT":
return True
return False

Expand Down

0 comments on commit 6792645

Please sign in to comment.