Fix import error in pyhton 2.6.

This commit is contained in:
Christopher Ramírez 2014-07-20 13:14:11 -06:00
parent 4067b17a59
commit f6a78cb4b2

View file

@ -22,10 +22,15 @@ import re
import sys
import logging
import zipfile
from collections import OrderedDict
from xml.dom.minidom import parseString
from jinja2 import Environment, Undefined
try:
from collections import OrderedDict
except ImportError:
# Its python 2.6
pass
# Test python versions and normalize calls to basestring, unicode, etc.
try:
unicode = unicode