Fix importing ordereddict for python2.7 (ubuntu).

Change-Id: Id83585610df883512d5af5dcd732ffe3bbdebc27
This commit is contained in:
Timur Sufiev 2013-10-30 20:11:01 +04:00
parent f654e2515a
commit 4127651a06
1 changed files with 4 additions and 1 deletions

View File

@ -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 _