summaryrefslogtreecommitdiff
path: root/py/demo/Ice/throughput/Server.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-11-07 18:08:47 +0000
committerMark Spruiell <mes@zeroc.com>2006-11-07 18:08:47 +0000
commitca112fcd33a4a1c030b2c48342aba7b1f929f1eb (patch)
tree0ff83056079310a390890c783e4d7c74f1beba71 /py/demo/Ice/throughput/Server.py
parentSolaris fix (diff)
downloadice-ca112fcd33a4a1c030b2c48342aba7b1f929f1eb.tar.bz2
ice-ca112fcd33a4a1c030b2c48342aba7b1f929f1eb.tar.xz
ice-ca112fcd33a4a1c030b2c48342aba7b1f929f1eb.zip
use a string instead of a list
Diffstat (limited to 'py/demo/Ice/throughput/Server.py')
-rw-r--r--py/demo/Ice/throughput/Server.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/py/demo/Ice/throughput/Server.py b/py/demo/Ice/throughput/Server.py
index a5f891052a5..30d42e60b4a 100644
--- a/py/demo/Ice/throughput/Server.py
+++ b/py/demo/Ice/throughput/Server.py
@@ -15,9 +15,10 @@ import Demo
class ThroughputI(Demo.Throughput):
def __init__(self):
- self.byteSeq = []
- self.byteSeq[0:Demo.ByteSeqSize] = range(0, Demo.ByteSeqSize)
- self.byteSeq = [0 for x in self.byteSeq]
+ bytes = []
+ bytes[0:Demo.ByteSeqSize] = range(0, Demo.ByteSeqSize)
+ bytes = ['\x00' for x in bytes]
+ self.byteSeq = ''.join(bytes)
self.stringSeq = []
self.stringSeq[0:Demo.StringSeqSize] = range(0, Demo.StringSeqSize)