summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2013-05-15 14:43:33 -0700
committerJoe Gordon <joe.gordon0@gmail.com>2013-05-20 18:57:30 -0700
commit0a14e1d0c448475773861d5aec9ed62385f6903c (patch)
tree8a5452bccf5787f0f2b35f1532ad0599062a0b76
parentc6a9dfdb43081588b347b2f6e355bf057b71b4bd (diff)
downloadoslo-0a14e1d0c448475773861d5aec9ed62385f6903c.tar.gz
oslo-0a14e1d0c448475773861d5aec9ed62385f6903c.tar.xz
oslo-0a14e1d0c448475773861d5aec9ed62385f6903c.zip
Enable hacking H703: Multiple positional placeholders
Fix and enable test for multiple positional placeholders in localizations Change-Id: Ie3b5e3113cd0f3340b7b0f5774001893b1e6857c
-rw-r--r--openstack/common/rpc/amqp.py5
-rw-r--r--tox.ini2
2 files changed, 4 insertions, 3 deletions
diff --git a/openstack/common/rpc/amqp.py b/openstack/common/rpc/amqp.py
index dc9aadb..946501b 100644
--- a/openstack/common/rpc/amqp.py
+++ b/openstack/common/rpc/amqp.py
@@ -197,8 +197,9 @@ class ReplyProxy(ConnectionContext):
msg_id = message_data.pop('_msg_id', None)
waiter = self._call_waiters.get(msg_id)
if not waiter:
- LOG.warn(_('no calling threads waiting for msg_id : %s'
- ', message : %s') % (msg_id, message_data))
+ LOG.warn(_('no calling threads waiting for msg_id : %(msg_id)s'
+ ', message : %(data)s'), {'msg_id': msg_id,
+ 'data': message_data})
else:
waiter.put(message_data)
diff --git a/tox.ini b/tox.ini
index c23df7f..6efa07d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,7 +17,7 @@ commands =
[flake8]
show-source = True
-ignore = H201,H202,H302,H304,H306,H401,H402,H403,H404,H702,H703
+ignore = H201,H202,H302,H304,H306,H401,H402,H403,H404,H702
exclude = .venv,.tox,dist,doc,*.egg,.update-venv
[testenv:pep8]