def convert_datestr(datestr):
    """Converts dates like `12/31/2010` into datetime objects."""
    try:
        return dateutil.parser.parse(datestr)
    except (__HOLE__, ValueError, AttributeError):
        return None
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/utils/time.py/convert_datestr