def create_schema(name, database, owner=None):
    """
    Create a schema within a database.
    """
    if owner:
        _run_as_pg('''psql %(database)s -c "CREATE SCHEMA %(name)s AUTHORIZATION %(owner)s"''' % locals())
    else:
        _run_as_pg(locals() % '''psql %(database)s -c "CREATE SCHEMA %(name)s"''')
dataset/ETHPy150Open ronnix/fabtools/fabtools/postgres.py/create_schema/swapped operands of `%`