summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-11-19 00:00:28 +0000
committerDave Hibberd <hibby@debian.org>2024-11-19 00:00:28 +0000
commitff1b9f1fe8ab959942d3de97fcdb8f84aa0ec847 (patch)
tree73481755fcd6b21f02688abb09601adfbc0b0805 /debian/patches
parent9b78676bc1587b9363ad2e1987faf7c8d076ac8e (diff)
parent44247d08463132d6df28ac94ff190b2145ff9c7c (diff)
Merge branch 'remove-six' into 'master'
Add 08-remove-six.patch (closes #1087666) See merge request debian-hamradio-team/chirp!8
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/08-remove-six.patch29
-rw-r--r--debian/patches/series1
2 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/08-remove-six.patch b/debian/patches/08-remove-six.patch
new file mode 100644
index 0000000..e577367
--- /dev/null
+++ b/debian/patches/08-remove-six.patch
@@ -0,0 +1,29 @@
+Description: Remove last remaining usage of python3-six
+Author: Alexandre Detiste <alexandre.detiste@gmail.com>
+Origin: Debian BTS, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087666
+Forwarded: https://github.com/kk7ds/chirp/pull/1170
+Last-Update: 2024-11-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tests/unit/test_bitwise.py
++++ b/tests/unit/test_bitwise.py
+@@ -18,7 +18,6 @@
+ import unittest
+ from unittest import mock
+
+-import six
+
+ from chirp import bitwise
+ from chirp import memmap
+@@ -256,10 +255,7 @@
+ data = memmap.MemoryMapBytes(bytes(b"\xFFoobar1"))
+ obj = bitwise.parse("struct {char foo[7];} bar;", data)
+
+- if six.PY3:
+- expected = '\xffoobar1'
+- else:
+- expected = '\\xffoobar1'
++ expected = '\xffoobar1'
+
+ self.assertIn(expected, repr(obj.bar))
+
diff --git a/debian/patches/series b/debian/patches/series
index 99f7b47..06b6c82 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ desktop-file.patch
02-fix-setup-py.patch
distutils-migration.patch
07-disable-reporting.patch
+08-remove-six.patch