py-2.6 compat for utils/boto.py ElementTree exception

This commit is contained in:
Justin Findlay 2015-04-24 11:49:35 -06:00
parent bfd9158a83
commit 64c42ccb5f

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