diff options
author | Simon Law <simon.law@ecometrica.com> | 2012-07-26 12:46:58 -0400 |
---|---|---|
committer | Simon Law <simon.law@ecometrica.com> | 2012-07-26 12:46:58 -0400 |
commit | fd3c890e2ecd2b5448ee7ca65503c2b31ac92ddb (patch) | |
tree | 6eea45aa3a68fece4c9ae6add826eed50920c380 /wkhtmltopdf/utils.py | |
parent | 85daece4ed63036ef9906d795c5e1cbe38253800 (diff) | |
download | django-wkhtmltopdf-fd3c890e2ecd2b5448ee7ca65503c2b31ac92ddb.tar.gz django-wkhtmltopdf-fd3c890e2ecd2b5448ee7ca65503c2b31ac92ddb.tar.bz2 django-wkhtmltopdf-fd3c890e2ecd2b5448ee7ca65503c2b31ac92ddb.zip |
Python 2.6 compatibility fixes.
Implicit position arguments for str.format() are a 2.7ism.
Diffstat (limited to 'wkhtmltopdf/utils.py')
-rw-r--r-- | wkhtmltopdf/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wkhtmltopdf/utils.py b/wkhtmltopdf/utils.py index 3172c42..29e4ef6 100644 --- a/wkhtmltopdf/utils.py +++ b/wkhtmltopdf/utils.py @@ -127,7 +127,7 @@ def http_quote(string): except ImportError: string = string.encode('ascii', 'replace') # Wrap in double-quotes for ; , and the like - return '"{!s}"'.format(string.replace('\\', '\\\\').replace('"', '\\"')) + return '"{0!s}"'.format(string.replace('\\', '\\\\').replace('"', '\\"')) def pathname2fileurl(pathname): |