[Git][reproducible-builds/diffoscope][master] Fix compatibility with Python 3.7.

Chris Lamb gitlab at salsa.debian.org
Thu Jun 28 23:38:10 CEST 2018


Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
f77d2b1b by Chris Lamb at 2018-06-28T22:37:51+01:00
Fix compatibility with Python 3.7.

- - - - -


2 changed files:

- diffoscope/comparators/json.py
- diffoscope/presenters/formats.py


Changes:

=====================================
diffoscope/comparators/json.py
=====================================
--- a/diffoscope/comparators/json.py
+++ b/diffoscope/comparators/json.py
@@ -39,7 +39,7 @@ class JSONFile(File):
             # Try fuzzy matching for JSON files
             is_text = any(
                 file.magic_file_type.startswith(x)
-                for x in ('ASCII text', 'UTF-8 Unicode text'),
+                for x in ('ASCII text', 'UTF-8 Unicode text')
             )
             if is_text and not file.name.endswith('.json'):
                 buf = f.read(10)


=====================================
diffoscope/presenters/formats.py
=====================================
--- a/diffoscope/presenters/formats.py
+++ b/diffoscope/presenters/formats.py
@@ -109,5 +109,5 @@ class PresenterManager(object):
         """
 
         return any(
-            x['klass'].supports_visual_diffs for x in self.config.values(),
+            x['klass'].supports_visual_diffs for x in self.config.values()
         )



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/f77d2b1b466dfd37ffb091943d6c71e6836dee05

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/f77d2b1b466dfd37ffb091943d6c71e6836dee05
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20180628/78734d66/attachment.html>


More information about the rb-commits mailing list