diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-05-03 12:25:19 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-05-03 12:25:19 -0400 |
| commit | bf889f68e3efbf0ca388912b6c93ef61c5a8e7ad (patch) | |
| tree | 0b514d9f9581920aa4028f386447c0bec3b13cdc /nova/api | |
| parent | db81474a8b67334d88173ea2d93e57a113d4af06 (diff) | |
removing class imports
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/limits.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nova/api/openstack/limits.py b/nova/api/openstack/limits.py index f582fd1b6..47bc238f1 100644 --- a/nova/api/openstack/limits.py +++ b/nova/api/openstack/limits.py @@ -34,8 +34,6 @@ from nova import wsgi from nova.api.openstack import common from nova.api.openstack import faults from nova.api.openstack.views import limits as limits_views -from nova.wsgi import Controller -from nova.wsgi import Middleware # Convenience constants for the limits dictionary passed to Limiter(). @@ -197,7 +195,7 @@ DEFAULT_LIMITS = [ ] -class RateLimitingMiddleware(Middleware): +class RateLimitingMiddleware(wsgi.Middleware): """ Rate-limits requests passing through this middleware. All limit information is stored in memory for this implementation. @@ -211,7 +209,7 @@ class RateLimitingMiddleware(Middleware): @param application: WSGI application to wrap @param limits: List of dictionaries describing limits """ - Middleware.__init__(self, application) + wsgi.Middleware.__init__(self, application) self._limiter = Limiter(limits or DEFAULT_LIMITS) @wsgify(RequestClass=wsgi.Request) |
