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

Unified Diff: sitescripts/testpages/web/sitekey_frame.py

Issue 29756646: Noissue - Adapt best practices for trailing commas (abpssembly) (Closed)
Patch Set: Created April 19, 2018, 12:49 p.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
« no previous file with comments | « sitescripts/templateFilters.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/testpages/web/sitekey_frame.py
===================================================================
--- a/sitescripts/testpages/web/sitekey_frame.py
+++ b/sitescripts/testpages/web/sitekey_frame.py
@@ -24,14 +24,14 @@
@url_handler('/sitekey-frame')
def sitekey_frame(environ, start_response):
template_path, template_file = os.path.split(
- get_config().get('testpages', 'sitekeyFrameTemplate')
+ get_config().get('testpages', 'sitekeyFrameTemplate'),
)
template = get_template(template_file, template_path=template_path)
key = M2Crypto.EVP.load_key(get_config().get('testpages', 'sitekeyPath'))
key.sign_init()
key.sign_update('\x00'.join((
- request_path(environ), environ['HTTP_HOST'], environ['HTTP_USER_AGENT']
+ request_path(environ), environ['HTTP_HOST'], environ['HTTP_USER_AGENT'],
)))
public_key = base64.b64encode(key.as_der())
« no previous file with comments | « sitescripts/templateFilters.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld