[diffoscope] 01/08: Move diffoscope.presenters.html to its own module.

Chris Lamb chris at chris-lamb.co.uk
Sun Jan 1 12:47:34 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 1abd485574c6109b54701b075ec5b20392b1de7b
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jan 1 11:43:19 2017 +0000

    Move diffoscope.presenters.html to its own module.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/presenters/html/__init__.py   | 20 ++++++++++++++++++++
 diffoscope/presenters/{ => html}/html.py |  8 ++++----
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/diffoscope/presenters/html/__init__.py b/diffoscope/presenters/html/__init__.py
new file mode 100644
index 0000000..1951994
--- /dev/null
+++ b/diffoscope/presenters/html/__init__.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+#
+# diffoscope: in-depth comparison of files, archives, and directories
+#
+# Copyright © 2016 Chris Lamb <lamby at debian.org>
+#
+# diffoscope is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# diffoscope is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with diffoscope.  If not, see <https://www.gnu.org/licenses/>.
+
+from .html import output_html, output_html_directory, JQUERY_SYSTEM_LOCATIONS
diff --git a/diffoscope/presenters/html.py b/diffoscope/presenters/html/html.py
similarity index 99%
rename from diffoscope/presenters/html.py
rename to diffoscope/presenters/html/html.py
index a3349ed..66e0219 100644
--- a/diffoscope/presenters/html.py
+++ b/diffoscope/presenters/html/html.py
@@ -40,11 +40,11 @@ import codecs
 import hashlib
 import contextlib
 
-from .. import VERSION
-from ..config import Config
-from ..logging import logger
+from ... import VERSION
+from ...config import Config
+from ...logging import logger
 
-from .icon import FAVICON_BASE64
+from ..icon import FAVICON_BASE64
 
 
 # minimum line size, we add a zero-sized breakable space every

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


More information about the diffoscope mailing list