diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-11-19 00:00:28 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-11-19 00:00:28 +0000 |
| commit | ff1b9f1fe8ab959942d3de97fcdb8f84aa0ec847 (patch) | |
| tree | 73481755fcd6b21f02688abb09601adfbc0b0805 /debian/patches/08-remove-six.patch | |
| parent | 9b78676bc1587b9363ad2e1987faf7c8d076ac8e (diff) | |
| parent | 44247d08463132d6df28ac94ff190b2145ff9c7c (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/08-remove-six.patch')
| -rw-r--r-- | debian/patches/08-remove-six.patch | 29 |
1 files changed, 29 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)) + |
