diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-01-18 22:26:42 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-01-18 22:26:42 +0000 |
| commit | dc39e196373c90eacf48a236a6836c793f896312 (patch) | |
| tree | 0bd720cf87ef5373233a28805fefac838813b19d /nova/api | |
| parent | 0ed09a3f4e34f8039e471242517dca14b278bcdb (diff) | |
| parent | 236190c4526effb138db104998e947e0d7496f84 (diff) | |
Merge "Cleanup Imports to match HACKING guidelines"
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/limits.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/compute/limits.py b/nova/api/openstack/compute/limits.py index 0a1b80057..94f92700c 100644 --- a/nova/api/openstack/compute/limits.py +++ b/nova/api/openstack/compute/limits.py @@ -17,7 +17,7 @@ Module dedicated functions/classes dealing with rate limiting requests. """ -from collections import defaultdict +import collections import copy import httplib import json @@ -283,7 +283,7 @@ class Limiter(object): @param limits: List of `Limit` objects """ self.limits = copy.deepcopy(limits) - self.levels = defaultdict(lambda: copy.deepcopy(limits)) + self.levels = collections.defaultdict(lambda: copy.deepcopy(limits)) # Pick up any per-user limit information for key, value in kwargs.items(): |
