/usr/share/pyshared/pika/template.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 | # ***** BEGIN LICENSE BLOCK *****
#
# For copyright and licensing please refer to COPYING.
#
# ***** END LICENSE BLOCK *****
"""
Pika Impementation Templates
Template classes to extend that make building asynchronous Pika clients easier
"""
from pika.object import object_
import pika.spec as spec
class AsyncConsumer(object_):
def __init__(self, reconnect=False):
pass
def connect(self, host='localhost', port=spec.PORT, vhost='/',
username='guest', password='guest'):
pass
def on_connected(self, connection):
pass
def on_disconnected(self):
pass
def declare_exchange(self, name, type='direct',
auto_delete=False, durable=True):
pass
def declare_queue(self, queue):
pass
|