diff options
Diffstat (limited to 'py/demo/Ice/throughput/Client.py')
-rwxr-xr-x | py/demo/Ice/throughput/Client.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/py/demo/Ice/throughput/Client.py b/py/demo/Ice/throughput/Client.py index 48bf1b683f0..5da6fd8d27e 100755 --- a/py/demo/Ice/throughput/Client.py +++ b/py/demo/Ice/throughput/Client.py @@ -47,13 +47,7 @@ class Client(Ice.Application): return 1 throughputOneway = Demo.ThroughputPrx.uncheckedCast(throughput.ice_oneway()) - if sys.version_info[0] == 2: - b = [] - b[0:Demo.ByteSeqSize] = range(0, Demo.ByteSeqSize) - b = ['\x00' for x in b] - byteSeq = ''.join(b) - else: - byteSeq = bytes([0 for x in range(0, Demo.ByteSeqSize)]) + byteSeq = bytearray(Demo.ByteSeqSize) stringSeq = [] stringSeq[0:Demo.StringSeqSize] = range(0, Demo.StringSeqSize) |