3 Commits

Author SHA1 Message Date
gengchc2
de49b53329 Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: Ieb7b8a62ef5b8fae79fa41861ad3910ecad988c8
2016-12-09 10:37:30 +08:00
Mehdi Abaakouk
c78b156723 Restore backward compat of paste factory
Some application inherits from our middleware class

When we homogenize the signature and configuration handling
of all middlewares we break them.

This change fixes that.

Closes-bug: #1486735

Change-Id: I40c3d59110c6f8c5a1b3d3ccc734dc441069b025
2015-08-20 16:49:32 +02:00
Doug Hellmann
8e06ca5bd0 Move files out of the namespace package
Move the public API out of oslo.middleware to oslo_middleware. Retain
the ability to import from the old namespace package for backwards
compatibility for this release cycle.

bp/drop-namespace-packages

Change-Id: If88c65c82b64f096a02f7ec62e019aea4de2f9d3
2015-01-06 13:44:01 -05:00