File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 20
20
import collections
21
21
import functools
22
22
import time
23
- try :
24
- from collections import UserDict as IterableUserDict # Python 3
25
- except ImportError :
26
- from UserDict import IterableUserDict # Python 2
27
-
28
23
29
24
import iso8601
30
25
from oslo_log import log as logging
47
42
HOST_INSTANCE_SEMAPHORE = "host_instance"
48
43
49
44
50
- class ReadOnlyDict (IterableUserDict ):
45
+ class ReadOnlyDict (collections . UserDict ):
51
46
"""A read-only dict."""
52
47
53
48
def __init__ (self , source = None ):
Original file line number Diff line number Diff line change 20
20
import hashlib
21
21
import hmac
22
22
import os
23
+ import pickle
23
24
import re
24
25
25
- try : # python 2
26
- import pickle
27
- except ImportError : # python 3
28
- import cPickle as pickle
29
-
30
26
from keystoneauth1 import exceptions as ks_exceptions
31
27
from keystoneauth1 import session
32
28
import mock
You can’t perform that action at this time.
0 commit comments