Fix importing ordereddict for python2.7 (ubuntu).
Change-Id: Id83585610df883512d5af5dcd732ffe3bbdebc27
This commit is contained in:
parent
f654e2515a
commit
4127651a06
|
@ -17,7 +17,10 @@ import re
|
|||
import time
|
||||
import logging
|
||||
from django.conf import settings
|
||||
from ordereddict import OrderedDict
|
||||
try:
|
||||
from collections import OrderedDict
|
||||
except ImportError: # python2.6
|
||||
from ordereddict import OrderedDict
|
||||
import yaml
|
||||
from yaml.scanner import ScannerError
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
|
Loading…
Reference in New Issue