From 8aabee352c70a54ea777bc21033233a72122cd30 Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Fri, 26 May 2017 12:34:05 -0400 Subject: [PATCH] Import the ordereddict module for Python 2.6 --- web/pgadmin/tools/sqleditor/command.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/tools/sqleditor/command.py b/web/pgadmin/tools/sqleditor/command.py index 9ed9154f7..06fe56511 100644 --- a/web/pgadmin/tools/sqleditor/command.py +++ b/web/pgadmin/tools/sqleditor/command.py @@ -10,7 +10,10 @@ """ Implemented classes for the different object type used by data grid """ from abc import ABCMeta, abstractmethod -from collections import OrderedDict +try: + from collections import OrderedDict +except ImportError: + from ordereddict import OrderedDict import six from flask import render_template from flask_babel import gettext