From 4ff6c01aa7f9ae1b8db63d192b5e664dcfd1ea69 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Thu, 6 Aug 2020 23:01:02 +0200 Subject: Lots of python3 porting missing, tested so far: Baofeng UV-5R. --- debian/changelog | 5 +++-- debian/patches/py3-fixes | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index dc45049..0605d78 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,10 @@ -chirp (1:20200227+py3+20200213-1) UNRELEASED; urgency=medium +chirp (1:20200227+py3+20200213-1) unstable; urgency=medium * Switch to upstream py3 branch based on python3-wxgtk4.0. (Closes: #885265, #936299) + * Lots of python3 porting missing, tested so far: Baofeng UV-5R. - -- Christoph Berg Tue, 31 Mar 2020 18:00:00 +0200 + -- Christoph Berg Thu, 06 Aug 2020 22:59:46 +0200 chirp (1:20200227-1) unstable; urgency=medium diff --git a/debian/patches/py3-fixes b/debian/patches/py3-fixes index 092d5bb..087a266 100644 --- a/debian/patches/py3-fixes +++ b/debian/patches/py3-fixes @@ -9,3 +9,14 @@ """Sets the parameters to use for the query""" self._lat = lat self._lon = lon +--- a/chirp/drivers/uv5r.py ++++ b/chirp/drivers/uv5r.py +@@ -587,7 +587,7 @@ def _do_download(radio): + data += _read_block(radio, i, 0x40, False) + + if append_model: +- data += radio.MODEL.ljust(8) ++ data += bytes(radio.MODEL.encode('utf-8').ljust(8)) + + LOG.debug("done.") + return memmap.MemoryMapBytes(data) -- cgit v1.2.3