/usr/share/doc/pyro/examples/agent3/agent/ShoppingAgent.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 | class ShoppingAgent(object):
def __init__(self, name):
self.name=name
self.visited=[]
def result(self):
print 'My name is',self.name
print 'I have visited',self.visited
def visit(self, name):
self.visited.append(name)
def __str__(self):
return self.name
|