From 236190c4526effb138db104998e947e0d7496f84 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Tue, 17 Jan 2012 18:21:12 -0800 Subject: Cleanup Imports to match HACKING guidelines found using https://github.com/cloudscaling/nova-HACKING Change-Id: Ic010f0407e7a139f0f6436af2e72e817c140a4c3 --- nova/api/openstack/compute/limits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/api') 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(): -- cgit