[Telepathy-commits] [telepathy-salut/master] Avahi tests: Fix split when txt records contains '='
Alban Crequy
alban.crequy at collabora.co.uk
Thu Feb 26 11:20:06 PST 2009
---
tests/twisted/avahitest.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/avahitest.py b/tests/twisted/avahitest.py
index bd839e6..9cb34fe 100644
--- a/tests/twisted/avahitest.py
+++ b/tests/twisted/avahitest.py
@@ -26,7 +26,7 @@ def get_domain_name():
def txt_get_key(txt, key):
for x in txt:
if dbus.Byte('=') in x:
- (rkey, value) = avahi.byte_array_to_string(x).split('=')
+ (rkey, value) = avahi.byte_array_to_string(x).split('=', 1)
if rkey == key:
return value
--
1.5.6.5
More information about the telepathy-commits
mailing list