Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/extensions/web/downloads.py

Issue 29345242: Noissue - Adapt quotes for compliance with our coding style in sitescripts (Closed)
Patch Set: Fixed raw string Created May 30, 2016, 8:47 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sitescripts/extensions/web/downloads.py
===================================================================
--- a/sitescripts/extensions/web/downloads.py
+++ b/sitescripts/extensions/web/downloads.py
@@ -32,7 +32,7 @@
request = urlparse.urlparse(environ.get('REQUEST_URI', ''))
basename = posixpath.splitext(posixpath.basename(request.path))[0]
if basename in links:
- start_response('302 Found', [('Location', links[basename].encode("utf-8"))])
+ start_response('302 Found', [('Location', links[basename].encode('utf-8'))])
else:
start_response('404 Not Found', [])
return []
@@ -43,7 +43,7 @@
getDownloadLinks(parser)
result = {}
for section in parser.sections():
- result[section] = parser.get(section, "downloadURL")
+ result[section] = parser.get(section, 'downloadURL')
return result

Powered by Google App Engine
This is Rietveld