From 4ba1b594d5179a36f082f902a7dc162feb2894af Mon Sep 17 00:00:00 2001
From: Hu Yupeng <huyp@inspur.com>
Date: Mon, 17 Oct 2016 15:52:25 +0800
Subject: [PATCH] Fix typos in addressing.py and setup.cfg

TrivialFix

Change-Id: I403ede0d11357c76da2432fd14a6b843969c1c17
---
 oslo_messaging/_drivers/amqp1_driver/addressing.py | 2 +-
 setup.cfg                                          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/oslo_messaging/_drivers/amqp1_driver/addressing.py b/oslo_messaging/_drivers/amqp1_driver/addressing.py
index 36c0031d2..1a99caed1 100644
--- a/oslo_messaging/_drivers/amqp1_driver/addressing.py
+++ b/oslo_messaging/_drivers/amqp1_driver/addressing.py
@@ -256,7 +256,7 @@ class AddresserFactory(object):
         self._kwargs = kwargs
 
     def __call__(self, remote_properties):
-        # for backwards compatiblity use legacy if dynamic and we're connected
+        # for backwards compatibility use legacy if dynamic and we're connected
         # to qpidd or we cannot identify the message bus.  This can be
         # overridden via the configuration.
         product = remote_properties.get('product', 'qpid-cpp')
diff --git a/setup.cfg b/setup.cfg
index 90abec984..4fdfad846 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -59,7 +59,7 @@ oslo.messaging.notify.drivers =
 
 oslo.messaging.pika.connection_factory =
     # Creates new connection for each create_connection call. Old-style behaviour
-    # Uses a much more connections then single and read_write factories but still avalable as
+    # Uses a much more connections then single and read_write factories but still available as
     # an option
     new = oslo_messaging._drivers.pika_driver.pika_connection_factory:PikaConnectionFactory