From 8b3062eaa2a807f8ea4a5d90484a50e1ee5213ce Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 1 Dec 2013 15:47:20 +0100 Subject: [PATCH] Make Accept headers py 2.6 compatible --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 6cd1e87..9f5ad3d 100644 --- a/morss.py +++ b/morss.py @@ -241,7 +241,7 @@ class SimpleDownload(urllib2.HTTPCookieProcessor): if not self.strict: out['*/*'] = rank-0.1 - string = ','.join([x+';q={:.1}'.format(out[x]) if out[x] != 1 else x for x in out]) + string = ','.join([x+';q={0:.1}'.format(out[x]) if out[x] != 1 else x for x in out]) log(string) req.add_unredirected_header('Accept', string)