From 491fb3c3cfc83f00179c9f61ff234c409b4632ba Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 9 Apr 2020 20:28:54 -0700 Subject: [PATCH] urls: Avoid bare tuples. Signed-off-by: Anders Kaseorg --- zproject/urls.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/zproject/urls.py b/zproject/urls.py index 70aa953011..a130f980c2 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -627,16 +627,20 @@ urls += [ # This url serves as a way to receive CSP violation reports from the users. # We use this endpoint to just log these reports. -urls += url(r'^report/csp_violations$', zerver.views.report.report_csp_violations, - name='zerver.views.report.report_csp_violations'), +urls += [ + url(r'^report/csp_violations$', zerver.views.report.report_csp_violations, + name='zerver.views.report.report_csp_violations'), +] # This url serves as a way to provide backward compatibility to messages # rendered at the time Zulip used camo for doing http -> https conversion for # such links with images previews. Now thumbor can be used for serving such # images. -urls += url(r'^external_content/(?P[\S]+)/(?P[\S]+)$', - zerver.views.camo.handle_camo_url, - name='zerver.views.camo.handle_camo_url'), +urls += [ + url(r'^external_content/(?P[\S]+)/(?P[\S]+)$', + zerver.views.camo.handle_camo_url, + name='zerver.views.camo.handle_camo_url'), +] # Incoming webhook URLs # We don't create urls for particular git integrations here