diff options
Diffstat (limited to 'py/demo/Ice/throughput/Server.py')
-rw-r--r-- | py/demo/Ice/throughput/Server.py | 7 |
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) |