summaryrefslogtreecommitdiff
path: root/py/test/Ice/operations/ServerAMD.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/test/Ice/operations/ServerAMD.py')
-rw-r--r--py/test/Ice/operations/ServerAMD.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/py/test/Ice/operations/ServerAMD.py b/py/test/Ice/operations/ServerAMD.py
index 064731d6a2c..08a753995c5 100644
--- a/py/test/Ice/operations/ServerAMD.py
+++ b/py/test/Ice/operations/ServerAMD.py
@@ -97,10 +97,11 @@ class MyDerivedClassI(Test.MyDerivedClass):
cb.ice_response(p2, p1)
def opByteS_async(self, cb, p1, p2, current=None):
- p3 = p1[0:]
+ # By default sequence<byte> maps to a string.
+ p3 = map(ord, p1)
p3.reverse()
- r = p1[0:]
- r.extend(p2)
+ r = map(ord, p1)
+ r.extend(map(ord, p2))
cb.ice_response(r, p3)
def opBoolS_async(self, cb, p1, p2, current=None):