diff options
author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2012-07-27 11:36:02 +0100 |
---|---|---|
committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2012-07-27 11:36:02 +0100 |
commit | e4a84d5f2e1282ed62d19ce7c52ca57eabb54598 (patch) | |
tree | 5ad00cbbe4656267889efaf96cb86ed5477a2016 /wkhtmltopdf | |
parent | 887ab7ce4ee31cf924e28f3c85783b5cf8352cc1 (diff) | |
download | django-wkhtmltopdf-e4a84d5f2e1282ed62d19ce7c52ca57eabb54598.tar.gz django-wkhtmltopdf-e4a84d5f2e1282ed62d19ce7c52ca57eabb54598.tar.bz2 django-wkhtmltopdf-e4a84d5f2e1282ed62d19ce7c52ca57eabb54598.zip |
Don't override builtins by importing.
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r-- | wkhtmltopdf/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py index 20002bd..6668474 100644 --- a/wkhtmltopdf/views.py +++ b/wkhtmltopdf/views.py @@ -1,7 +1,7 @@ from __future__ import absolute_import -from re import compile from tempfile import NamedTemporaryFile +import re from django.conf import settings from django.http import HttpResponse @@ -160,7 +160,7 @@ class PDFTemplateResponse(TemplateResponse, PDFResponse): if self.override_settings is not None: overrides.update(self.override_settings) - has_scheme = compile(r'^[^:/]+://') + has_scheme = re.compile(r'^[^:/]+://') # If MEDIA_URL doesn't have a scheme, we transform it into a # file:// URL based on MEDIA_ROOT. |