Merge pull request #23048 from jfindlay/ET_error

py-2.6 compat for utils/boto.py ElementTree exception
This commit is contained in:
Thomas S Hatch 2015-04-25 10:56:45 -06:00
commit d45aa21dca

View file

@ -61,6 +61,16 @@ else:
callable = callable
if not hasattr(ElementTree, 'ParseError'):
class ParseError(Exception):
'''
older versions of ElementTree do not have ParseError
'''
pass
ElementTree.ParseError = ParseError
def text_(s, encoding='latin-1', errors='strict'):
'''
If ``s`` is an instance of ``binary_type``, return