Fix import error in pyhton 2.6.
This commit is contained in:
parent
4067b17a59
commit
f6a78cb4b2
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue