Merge branch 'ak04nv-python3_fix' into development

This commit is contained in:
Christopher Ramírez 2015-05-08 12:22:11 -06:00
commit 2ee75c1d82

View file

@ -29,21 +29,9 @@ from xml.dom.minidom import parseString
from xml.parsers.expat import ExpatError from xml.parsers.expat import ExpatError
from jinja2 import Environment, Undefined from jinja2 import Environment, Undefined
# Test python versions and normalize calls to basestring, unicode, etc. if sys.version_info.major == 3:
try: xrange = range
unicode = unicode basestring = (str, bytes)
except NameError:
# 'unicode' is undefined, must be Python 3
str = str
unicode = str
bytes = bytes
basestring = (str,bytes)
else:
# 'unicode' exists, must be Python 2
str = str
unicode = unicode
bytes = str
basestring = basestring
FLOW_REFERENCES = { FLOW_REFERENCES = {