[chirp_devel] [PATCH] [thd72] Add rstrip to pass all tests. #81

Tom Hayward
Tue Jan 8 10:40:00 PST 2013


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1357670392 28800
# Node ID e0084e11848639270f5f48ed3ec5f0ac1f0b3b34
# Parent  5f8ff112c757bf0001345a267660991d1fc22826
[thd72] Add rstrip to pass all tests. #81

diff -r 5f8ff112c757 -r e0084e118486 chirp/thd72.py
--- a/chirp/thd72.py	Mon Jan 07 21:52:44 2013 -0800
+++ b/chirp/thd72.py	Tue Jan 08 10:39:52 2013 -0800
@@ -232,7 +232,7 @@
             name = str(self._memobj.wx_name[number].name) + '\xff'
         else:
             return ''
-        return name[:name.index('\xff')]
+        return name[:name.index('\xff')].rstrip()
 
     def set_channel_name(self, number, name):
         name = name[:8] + '\xff'*8



More information about the chirp_devel mailing list