summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_middleware/healthcheck/__init__.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/oslo_middleware/healthcheck/__init__.py b/oslo_middleware/healthcheck/__init__.py
index ceb2301..a821233 100644
--- a/oslo_middleware/healthcheck/__init__.py
+++ b/oslo_middleware/healthcheck/__init__.py
@@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
+import collections
import gc
import json
import platform
@@ -20,12 +21,6 @@ import socket
import sys
import traceback
-try:
- from collections import OrderedDict # noqa
-except ImportError:
- # TODO(harlowja): remove this when py2.6 support is dropped...
- from ordereddict import OrderedDict # noqa
-
import jinja2
from oslo_utils import reflection
from oslo_utils import strutils
@@ -238,7 +233,7 @@ Reason
self.NAMESPACE, self._backend_names,
name_order=True, invoke_on_load=True,
invoke_args=(conf,))
- self._accept_to_functor = OrderedDict([
+ self._accept_to_functor = collections.OrderedDict([
# Order here matters...
('text/plain', self._make_text_response),
('text/html', self._make_html_response),