[Telepathy-commits] [telepathy-gabble/master] bytestream: re-order functions

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Feb 19 04:18:29 PST 2009


---
 tests/twisted/bytestream.py |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/tests/twisted/bytestream.py b/tests/twisted/bytestream.py
index 8fc0ba6..93b1d37 100644
--- a/tests/twisted/bytestream.py
+++ b/tests/twisted/bytestream.py
@@ -30,14 +30,6 @@ def create_si_offer(stream, from_, to, sid, profile, bytestreams):
 
     return iq, si
 
-def parse_si_reply(iq):
-    si = xpath.queryForNodes('/iq/si[@xmlns="%s"]' % ns.SI,
-            iq)[0]
-    value = xpath.queryForNodes('/si/feature/x/field/value', si)
-    assert len(value) == 1
-    proto = value[0]
-    return str(proto)
-
 def create_si_reply(stream, iq, to, bytestream):
     result = IQ(stream, 'result')
     result['id'] = iq['id']
@@ -54,6 +46,15 @@ def create_si_reply(stream, iq, to, bytestream):
 
     return result
 
+def parse_si_reply(iq):
+    si = xpath.queryForNodes('/iq/si[@xmlns="%s"]' % ns.SI,
+            iq)[0]
+    value = xpath.queryForNodes('/si/feature/x/field/value', si)
+    assert len(value) == 1
+    proto = value[0]
+    return str(proto)
+
+
 ##### XEP-0065: SOCKS5 Bytestreams #####
 
 class S5BProtocol(Protocol):
-- 
1.5.6.5




More information about the telepathy-commits mailing list