mixkorshun / django-safe-filefield

Secure file field, which allows you to restrict uploaded file extensions.
MIT License
53 stars 10 forks source link

urllib.parse ImportError when using python2 #8

Open marlonleite opened 4 years ago

marlonleite commented 4 years ago

There is an error when importing the urllib library into python2.

clamav.py:

try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse hope it helps