#!/usr/bin/python3
"""
change name of `State` object
"""
from model_state import Base, State
from sys import argv
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker


if __name__ == "__main__":
    engine = create_engine('mysql+mysqldb://{}:{}@localhost:3306/{}'
                           .format(argv[1], argv[2], argv[3]))
    Base.metadata.create_all(engine)

    Session = sessionmaker(bind=engine)
    session = Session()
    for states in session.query(State).all():
        if 'a' in states.name:
            session.delete(states)
    session.commit()

    session.close()

ae24c750a4639dda7171b16c48363db9a924fc46
<mask token>

<mask token>
if __name__ == '__main__':
    engine = create_engine('mysql+mysqldb://{}:{}@localhost:3306/{}'.format
        (argv[1], argv[2], argv[3]))
    Base.metadata.create_all(engine)
    Session = sessionmaker(bind=engine)
    session = Session()
    for states in session.query(State).all():
        if 'a' in states.name:
            session.delete(states)
    session.commit()
    session.close()

<mask token>
from model_state import Base, State
from sys import argv
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
if __name__ == '__main__':
    engine = create_engine('mysql+mysqldb://{}:{}@localhost:3306/{}'.format
        (argv[1], argv[2], argv[3]))
    Base.metadata.create_all(engine)
    Session = sessionmaker(bind=engine)
    session = Session()
    for states in session.query(State).all():
        if 'a' in states.name:
            session.delete(states)
    session.commit()
    session.close()

#!/usr/bin/python3
"""
change name of `State` object
"""
from model_state import Base, State
from sys import argv
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker


if __name__ == "__main__":
    engine = create_engine('mysql+mysqldb://{}:{}@localhost:3306/{}'
                           .format(argv[1], argv[2], argv[3]))
    Base.metadata.create_all(engine)

    Session = sessionmaker(bind=engine)
    session = Session()
    for states in session.query(State).all():
        if 'a' in states.name:
            session.delete(states)
    session.commit()

    session.close()
