/usr/share/pyshared/pika/object.py is in python-pika 0.9.5-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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # ***** BEGIN LICENSE BLOCK *****
#
# For copyright and licensing please refer to COPYING.
#
# ***** END LICENSE BLOCK *****
class object_(object):
@property
def name(self):
return getattr(self, 'NAME', self.__class__.__name__)
def __repr__(self):
items = list()
for key, value in self.__dict__.iteritems():
if getattr(self.__class__, key, None) != value:
items.append('%s=%s' % (key, value))
return "<%s(%s)>" % (self.name, items)
class Class(object_):
pass
class Method(object_):
def _set_content(self, properties, body):
self._properties = properties
self._body = body
def get_properties(self):
return self._properties
def get_body(self):
return self._body
class Properties(object_):
pass
|