Skip to content

Commit

Permalink
Binary sniffing; along with the registry forcing case insensitivity t…
Browse files Browse the repository at this point in the history
…hrough lower() which was implemented a while back, the un/sniffable formats lists should as well. This resolves #753
  • Loading branch information
dannon committed Sep 22, 2015
1 parent 85552f7 commit 19bc49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/datatypes/binary.py
Expand Up @@ -41,11 +41,11 @@ class Binary( data.Data ):

@staticmethod
def register_sniffable_binary_format(data_type, ext, type_class):
Binary.sniffable_binary_formats.append({"type": data_type, "ext": ext, "class": type_class})
Binary.sniffable_binary_formats.append({"type": data_type, "ext": ext.lower(), "class": type_class})

@staticmethod
def register_unsniffable_binary_ext(ext):
Binary.unsniffable_binary_formats.append(ext)
Binary.unsniffable_binary_formats.append(ext.lower())

@staticmethod
def is_sniffable_binary( filename ):
Expand Down

0 comments on commit 19bc49d

Please sign in to comment.