From fd3c890e2ecd2b5448ee7ca65503c2b31ac92ddb Mon Sep 17 00:00:00 2001 From: Simon Law Date: Thu, 26 Jul 2012 12:46:58 -0400 Subject: Python 2.6 compatibility fixes. Implicit position arguments for str.format() are a 2.7ism. --- wkhtmltopdf/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wkhtmltopdf/utils.py') 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): -- cgit v1.2.3