diff --git a/pandora/app/views.py b/pandora/app/views.py index 60a173e2..94e1c08c 100644 --- a/pandora/app/views.py +++ b/pandora/app/views.py @@ -59,11 +59,11 @@ def redirect_url(request, url): if settings.CONFIG['site'].get('sendReferrer', False): return redirect(url) else: - return HttpResponse(''%json.dumps(url)) + return HttpResponse('' % json.dumps(url)) def opensearch_xml(request): osd = ET.Element('OpenSearchDescription') - osd.attrib['xmlns']="http://a9.com/-/spec/opensearch/1.1/" + osd.attrib['xmlns'] = "http://a9.com/-/spec/opensearch/1.1/" e = ET.SubElement(osd, 'ShortName') e.text = settings.SITENAME e = ET.SubElement(osd, 'Description')