def parse_date(date_str):
    """Parse out a datetime object from string using Twitter's formatting."""

    major = sys.version_info[0]
    minor = sys.version_info[1]
    if major > 3 or (major == 3 and 2 >= minor):  # python4 support :p
        date = datetime.strptime(date_str, "%a %b %d %H:%M:%S %z %Y")
    else:
        # bug in datetime's %z on py < 3.2 http://bugs.python.org/issue6641
        time_ = date_str.split(" ")
        date_str = " ".join([x for x in time_ if not x.startswith(("+", "-"))])
        date = datetime.strptime(date_str, "%a %b %d %H:%M:%S %Y")

    return date
dataset/ETHPy150Open a-tal/pyweet/pyweet/base.py/parse_date/swapped operands of `>=`