Merge pull request #100 from Mandar12/master

Fix: deprecation warning for type
This commit is contained in:
Michael Klishin 2016-09-06 14:01:01 +04:00 committed by GitHub
commit 083b214459
6 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
channel = connection.channel()
channel.exchange_declare(exchange='logs',
type='fanout')
exchange_type='fanout')
message = ' '.join(sys.argv[1:]) or "info: Hello World!"
channel.basic_publish(exchange='logs',

View File

@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
channel = connection.channel()
channel.exchange_declare(exchange='direct_logs',
type='direct')
exchange_type='direct')
severity = sys.argv[1] if len(sys.argv) > 1 else 'info'
message = ' '.join(sys.argv[2:]) or 'Hello World!'

View File

@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
channel = connection.channel()
channel.exchange_declare(exchange='topic_logs',
type='topic')
exchange_type='topic')
routing_key = sys.argv[1] if len(sys.argv) > 1 else 'anonymous.info'
message = ' '.join(sys.argv[2:]) or 'Hello World!'

View File

@ -6,7 +6,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
channel = connection.channel()
channel.exchange_declare(exchange='logs',
type='fanout')
exchange_type='fanout')
result = channel.queue_declare(exclusive=True)
queue_name = result.method.queue

View File

@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
channel = connection.channel()
channel.exchange_declare(exchange='direct_logs',
type='direct')
exchange_type='direct')
result = channel.queue_declare(exclusive=True)
queue_name = result.method.queue

View File

@ -7,7 +7,7 @@ connection = pika.BlockingConnection(pika.ConnectionParameters(
channel = connection.channel()
channel.exchange_declare(exchange='topic_logs',
type='topic')
exchange_type='topic')
result = channel.queue_declare(exclusive=True)
queue_name = result.method.queue