Moved import magic statement to the get_mime_type function so Travis won't break
This commit is contained in:
parent
10e45123c4
commit
97d2e734ee
1 changed files with 1 additions and 1 deletions
|
@ -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://'):]
|
||||
|
||||
|
|
Loading…
Reference in a new issue