8 Jan
2013
8 Jan
'13
10:40 a.m.
# HG changeset patch # User Tom Hayward tom@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