Moved import magic statement to the get_mime_type function so Travis won't break

This commit is contained in:
Fabio Manganiello 2019-02-06 13:22:58 +01:00
parent 10e45123c4
commit 97d2e734ee
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,6 @@ import hashlib
import importlib
import inspect
import logging
import magic
import os
import signal
import socket
@ -219,6 +218,7 @@ def get_ip_or_hostname():
def get_mime_type(resource):
import magic
if resource.startswith('file://'):
resource = resource[len('file://'):]