Skip to content

Commit d3fdbcd

Browse files
author
wu.shiming
committed
Replace deprecated import of ABCs from collections
ABCs in collections should be imported from collections.abc and direct import from collections is deprecated since Python 3.3. Change-Id: I6a96d3ed3f046f87822c4cedaa51041885a2d3b6
1 parent 2a0ec47 commit d3fdbcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudkittydashboard/api/cloudkitty.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# License for the specific language governing permissions and limitations
1414
# under the License.
1515
#
16-
import collections
16+
from collections import abc
1717

1818
from django.conf import settings
1919
from horizon.utils.memoized import memoized # noqa
@@ -52,7 +52,7 @@ def cloudkittyclient(request):
5252

5353

5454
def identify(what, name=False, key=None):
55-
if isinstance(what, collections.Iterable):
55+
if isinstance(what, abc.Iterable):
5656
for i in what:
5757
i['id'] = i.get(key or "%s_id" % i['key'])
5858
if name and not i.get('name'):

0 commit comments

Comments
 (0)