[diffoscope] 03/08: Move JQUERY_SYSTEM_LOCATIONS to top of module.

Chris Lamb chris at chris-lamb.co.uk
Sun Jan 1 12:48:17 CET 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 265891b954db21cceab02c42297f5e91ebc18dfe
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jan 1 11:43:19 2017 +0000

    Move JQUERY_SYSTEM_LOCATIONS to top of module.
---
 diffoscope/presenters/html/html.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/diffoscope/presenters/html/html.py b/diffoscope/presenters/html/html.py
index 57b6dad..0fc9540 100644
--- a/diffoscope/presenters/html/html.py
+++ b/diffoscope/presenters/html/html.py
@@ -60,6 +60,10 @@ WORDBREAK = " \t;.,/):-"
 DIFFON = "\x01"
 DIFFOFF = "\x02"
 
+JQUERY_SYSTEM_LOCATIONS = (
+    '/usr/share/javascript/jquery/jquery.js',
+)
+
 
 class PrintLimitReached(Exception):
     pass
@@ -577,8 +581,6 @@ def file_printer(directory, filename):
     with codecs.open(os.path.join(directory,filename), 'w', encoding='utf-8') as f:
         yield f.write
 
-JQUERY_SYSTEM_LOCATIONS = ['/usr/share/javascript/jquery/jquery.js']
-
 def output_html_directory(directory, difference, css_url=None, jquery_url=None):
     """
     Multi-file presenter. Writes to a directory, and puts large diff tables

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list