Fix regression with application mimetypes

pull/21/head
Dan Puttick 2017-07-27 11:30:26 -04:00
parent 51bfaa1ff5
commit 37fc204b18
1 changed files with 5 additions and 5 deletions

View File

@ -246,11 +246,11 @@ class File(FileBase):
def application(self): def application(self):
"""Process an application specific file according to its subtype.""" """Process an application specific file according to its subtype."""
if self.subtype in self.app_subtype_methods: for subtype, method in self.app_subtype_methods.items():
method = self.app_subtype_methods[self.subtype] if subtype in self.subtype: # checking for partial matches
method() method()
else: return
self._unknown_app() self._unknown_app() # if none of the methods match
def _executables(self): def _executables(self):
"""Process an executable file.""" """Process an executable file."""