aboutsummaryrefslogtreecommitdiff
path: root/license_protected_downloads/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'license_protected_downloads/common.py')
-rw-r--r--license_protected_downloads/common.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/license_protected_downloads/common.py b/license_protected_downloads/common.py
index fe4722d..a10f318 100644
--- a/license_protected_downloads/common.py
+++ b/license_protected_downloads/common.py
@@ -1,6 +1,5 @@
import fnmatch
import os
-import urllib
import boto
@@ -98,7 +97,7 @@ def _find_s3_artifact(request, path):
if not b:
return # s3 isn't configured
- prefix = settings.S3_PREFIX_PATH + urllib.pathname2url(path)
+ prefix = settings.S3_PREFIX_PATH + S3Artifact.pathname2url(path)
if prefix[-1] == '/':
# s3 listing give sub dir, we don't want that
prefix = prefix[:-1]