summaryrefslogtreecommitdiff
path: root/nova/wsgi.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2015-05-14 01:26:33 +0200
committerVictor Stinner <vstinner@redhat.com>2015-05-22 11:33:18 -0700
commit68f6f080b2cddd3d4e97dc25a98e0c84c4979b8a (patch)
tree5bd181a713c99e7b402af9ab57c4dd171fbf0f5b /nova/wsgi.py
parent792dc63a107751ceccce334541eca643b3e81bf5 (diff)
downloadnova-68f6f080b2cddd3d4e97dc25a98e0c84c4979b8a.tar.gz
Replace dict.iteritems() with six.iteritems(dict)
This patch was generated by the sixer tool version 0.2 using the "iteritems" operation: https://pypi.python.org/pypi/sixer Manual changes: - Don't change get_instance_metadata() in nova/compute/api.py: fixed by the change Ifd455e70002eb9636b87f83788384127ba6edeeb. - Don't change sqlalchemy code and nova/tests/unit/db/test_db_api.py. sqlalchemy objects cannot be converted to a dictionary using dict(obj) directly yet. It will be possible with the change I702be362a58155a28482e733e60539d36c039509. - Revert change in a comment in nova/objects/instance.py; the sixer tool is limited and don't understand comments - Reformat nova/virt/vmwareapi/driver.py to respect the 80 columns contraint Blueprint nova-python3 Change-Id: I81465661cb8a74778d70ba9b6641073f1effa49b
Diffstat (limited to 'nova/wsgi.py')
-rw-r--r--nova/wsgi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py
index 1b8a649b08..77db109dd6 100644
--- a/nova/wsgi.py
+++ b/nova/wsgi.py
@@ -33,6 +33,7 @@ from oslo_log import loggers
from oslo_utils import excutils
from paste import deploy
import routes.middleware
+import six
import webob.dec
import webob.exc
@@ -422,7 +423,7 @@ class Debug(Middleware):
resp = req.get_response(self.application)
print(('*' * 40) + ' RESPONSE HEADERS')
- for (key, value) in resp.headers.iteritems():
+ for (key, value) in six.iteritems(resp.headers):
print(key, '=', value)
print()