/usr/share/doc/pyro4/examples/stockquotes/phase2/viewer.py is in pyro4-examples 4.23-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 | from __future__ import print_function
class Viewer(object):
def quote(self, market, symbol, value):
print("{0}.{1}: {2}".format(market, symbol, value))
def main(aggregator):
viewer = Viewer()
aggregator.view(viewer, ["IBM", "AAPL", "MSFT"])
return viewer
|