This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Max gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/5028 Fix parsing for python3 In python3 we got bytes, not string from the socket so we have to use bytes argument for split(). Change-Id: I599f9f5a18109929f59386ab4416b8bfd75c74d1 --- M osmopy/osmo_ipa.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests refs/changes/28/5028/1 diff --git a/osmopy/osmo_ipa.py b/osmopy/osmo_ipa.py index 71cbf45..e3db561 100755 --- a/osmopy/osmo_ipa.py +++ b/osmopy/osmo_ipa.py @@ -237,12 +237,12 @@ var could be None in case of ERROR message value could be None in case of GET message """ - (s, i, v) = data.split(' ', 2) + (s, i, v) = data.split(b' ', 2) if s == self.CTRL_ERR: return None, v if s == self.CTRL_GET: return v, None - (s, i, var, val) = data.split(' ', 3) + (s, i, var, val) = data.split(b' ', 3) if s == self.CTRL_TRAP and i != '0': return None, '%s with non-zero id %s' % (s, i) if op is not None and i != op: -- To view, visit https://gerrit.osmocom.org/5028 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I599f9f5a18109929f59386ab4416b8bfd75c74d1 Gerrit-PatchSet: 1 Gerrit-Project: python/osmo-python-tests Gerrit-Branch: master Gerrit-Owner: Max <msuraev at sysmocom.de>