def _body_contains_location_constraint(self, body):
    if body:
        try:
            xmltodict.parse(body)['CreateBucketConfiguration']['LocationConstraint']
            return True
        except KeyError:
            pass
    return False
def _body_contains_location_constraint(self, body):
    if body:
        try:
            xmltodict.parse(body)['CreateBucketConfiguration']['LocationConstraint']
            return True
        except KeyError:
            pass
    return False