/usr/share/doc/pyro/examples/simple/client.py is in pyro-examples 1:3.14-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/env python
import Pyro.util
import Pyro.core
Pyro.core.initClient()
test = Pyro.core.getProxyForURI("PYRONAME://:test.simple")
print test.mul(111,9)
print test.add(100,222)
print test.sub(222,100)
print test.div(2.0,9.0)
print test.mul('.',10)
print test.add('String1','String2')
print '*** invoking server method that crashes ***'
try:
print test.error()
except Exception,x:
print "".join(Pyro.util.getPyroTraceback(x))
|