File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -2008,18 +2008,16 @@ def elfs(self):
2008
2008
| Q (file_type__icontains = "shared object" )
2009
2009
)
2010
2010
)
2011
-
2011
+
2012
2012
def win_exes (self ):
2013
2013
"""
2014
2014
Resources that are ``files`` and their filetype contains "for ms windows" or
2015
2015
starts with "pe32".
2016
2016
Keep sync with the content type implementation at ``typecode.contenttype``.
2017
2017
"""
2018
- return (
2019
- self .files ()
2020
- .filter (
2021
- Q (file_type__icontains = "for ms windows" ) | Q (filetype_file__istartswith = 'pe32' )
2022
- )
2018
+ return self .files ().filter (
2019
+ Q (file_type__icontains = "for ms windows" )
2020
+ | Q (filetype_file__istartswith = "pe32" )
2023
2021
)
2024
2022
2025
2023
def mach_os (self ):
@@ -2028,14 +2026,11 @@ def mach_os(self):
2028
2026
contains "application/x-mach-binary".
2029
2027
Keep sync with the content type implementation at ``typecode.contenttype``.
2030
2028
"""
2031
- return (
2032
- self .files ()
2033
- .filter (
2034
- models .Q (filetype__icontains = "mach-o" ) |
2035
- models .Q (mimetype__icontains = "application/x-mach-binary" )
2036
- )
2029
+ return self .files ().filter (
2030
+ models .Q (filetype__icontains = "mach-o" )
2031
+ | models .Q (mimetype__icontains = "application/x-mach-binary" )
2037
2032
)
2038
-
2033
+
2039
2034
def is_executable_binary (self ):
2040
2035
return self .elfs ().union (self .win_exes (), self .mach_os ())
2041
2036
You can’t perform that action at this time.
0 commit comments