mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-05 00:59:42 +00:00
Document _get_filetype function
This commit is contained in:
@@ -180,6 +180,7 @@ class Templategen:
|
||||
return f'{prepend}{utils.header()}'
|
||||
|
||||
def _get_filetype(self, src):
|
||||
"""use magic or the file command to get the mime type of a file"""
|
||||
try:
|
||||
# pylint: disable=C0415
|
||||
import magic
|
||||
|
||||
Reference in New Issue
Block a user