pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/py-diffoscope Remove trailing comma from gene...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b6100958699b
branches:  trunk
changeset: 389284:b6100958699b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Dec 27 15:03:53 2018 +0000

description:
Remove trailing comma from generator expressions for Python 3.7 compat.

diffstat:

 sysutils/py-diffoscope/distinfo                                       |   4 ++-
 sysutils/py-diffoscope/patches/patch-diffoscope_comparators_json.py   |  13 ++++++++++
 sysutils/py-diffoscope/patches/patch-diffoscope_presenters_formats.py |  11 ++++++++
 3 files changed, 27 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r ad54442eabe5 -r b6100958699b sysutils/py-diffoscope/distinfo
--- a/sysutils/py-diffoscope/distinfo   Thu Dec 27 13:24:06 2018 +0000
+++ b/sysutils/py-diffoscope/distinfo   Thu Dec 27 15:03:53 2018 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.5 2018/05/16 06:54:52 adam Exp $
+$NetBSD: distinfo,v 1.6 2018/12/27 15:03:53 joerg Exp $
 
 SHA1 (diffoscope-94.tar.gz) = 2dca48b577383377d4bb43d9472ecd9ae5112739
 RMD160 (diffoscope-94.tar.gz) = 78261a206f3c232c2b5e386eb3b5b6d825a79d56
 SHA512 (diffoscope-94.tar.gz) = a68fda09a8340b1b36683b0bda4c854cb04afb189b0464185b6de655c7fe2e122215612a0154738a1174ca1594bab3598359b10425a2375f692eb0bd089d89f1
 Size (diffoscope-94.tar.gz) = 9405785 bytes
+SHA1 (patch-diffoscope_comparators_json.py) = 6f148f9847f8d0b24007feaeed76265dfb47b8e9
+SHA1 (patch-diffoscope_presenters_formats.py) = f42ba00bcdf7347ed82c7b6aaff3af17b662b246
diff -r ad54442eabe5 -r b6100958699b sysutils/py-diffoscope/patches/patch-diffoscope_comparators_json.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-diffoscope/patches/patch-diffoscope_comparators_json.py       Thu Dec 27 15:03:53 2018 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-diffoscope_comparators_json.py,v 1.1 2018/12/27 15:03:53 joerg Exp $
+
+--- diffoscope/comparators/json.py.orig        2018-12-25 21:53:50.738372750 +0000
++++ 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)
diff -r ad54442eabe5 -r b6100958699b sysutils/py-diffoscope/patches/patch-diffoscope_presenters_formats.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-diffoscope/patches/patch-diffoscope_presenters_formats.py     Thu Dec 27 15:03:53 2018 +0000
@@ -0,0 +1,11 @@
+$NetBSD: patch-diffoscope_presenters_formats.py,v 1.1 2018/12/27 15:03:53 joerg Exp $
+
+--- diffoscope/presenters/formats.py.orig      2018-12-25 21:54:25.209444143 +0000
++++ 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()
+         )



Home | Main Index | Thread Index | Old Index