summaryrefslogtreecommitdiff
path: root/py/demo/Ice/async/Client.py
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
committerBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
commitabada90e3f84dc703b8ddc9efcbed8a946fadead (patch)
tree2c6f9dccd510ea97cb927a7bd635422efaae547a /py/demo/Ice/async/Client.py
parentremoving trace message (diff)
downloadice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip
Expanded tabs into spaces
Diffstat (limited to 'py/demo/Ice/async/Client.py')
-rw-r--r--py/demo/Ice/async/Client.py58
1 files changed, 29 insertions, 29 deletions
diff --git a/py/demo/Ice/async/Client.py b/py/demo/Ice/async/Client.py
index 9590f67ca46..96676a4f560 100644
--- a/py/demo/Ice/async/Client.py
+++ b/py/demo/Ice/async/Client.py
@@ -32,38 +32,38 @@ x: exit
class Client(Ice.Application):
def run(self, args):
- hello = Demo.HelloPrx.checkedCast(self.communicator().propertyToProxy('Hello.Proxy'))
- if not hello:
- print args[0] + ": invalid proxy"
- return False
+ hello = Demo.HelloPrx.checkedCast(self.communicator().propertyToProxy('Hello.Proxy'))
+ if not hello:
+ print args[0] + ": invalid proxy"
+ return False
- menu()
+ menu()
- c = None
- while c != 'x':
- try:
- c = raw_input("==> ")
- if c == 'i':
- hello.sayHello(0)
- elif c == 'd':
- hello.sayHello_async(AMI_Hello_sayHelloI(), 5000)
- elif c == 's':
- hello.shutdown()
- elif c == 'x':
- pass # Nothing to do
- elif c == '?':
- menu()
- else:
- print "unknown command `" + c + "'"
- menu()
- except EOFError:
- break
- except KeyboardInterrupt:
- break
- except Ice.Exception, ex:
- print ex
+ c = None
+ while c != 'x':
+ try:
+ c = raw_input("==> ")
+ if c == 'i':
+ hello.sayHello(0)
+ elif c == 'd':
+ hello.sayHello_async(AMI_Hello_sayHelloI(), 5000)
+ elif c == 's':
+ hello.shutdown()
+ elif c == 'x':
+ pass # Nothing to do
+ elif c == '?':
+ menu()
+ else:
+ print "unknown command `" + c + "'"
+ menu()
+ except EOFError:
+ break
+ except KeyboardInterrupt:
+ break
+ except Ice.Exception, ex:
+ print ex
- return True
+ return True
app = Client()
sys.exit(app.main(sys.argv, "config.client"))