Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Maybe I should read the code first
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sinchok committed Oct 24, 2014
1 parent b947ac0 commit 92a90c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions betty/cropper/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import tempfile
import requests
try:
from urlparse import urlparse
from urlparse import urlsplit
except ImportError:
from urllib.parse import urlparse # noqa
from urllib.parse import urlsplit
import shutil

from celery import shared_task
Expand Down Expand Up @@ -41,7 +41,7 @@ def download_image(image_id):
return

# TODO: Parse content-disposition header
parsed = urlparse.urlsplit(response.url)
parsed = urlsplit(response.url)
filename = os.path.basename(parsed.path)

source_path = source_upload_to(image, filename)
Expand Down

0 comments on commit 92a90c5

Please sign in to comment.