Fixed E703 (useless-semicolon): Statement ends with an unnecessary semicolon
This commit is contained in:
parent
57dcd4bb51
commit
ec32e1d578
|
@ -511,7 +511,7 @@ def remove_mail_alias(address, env, do_kick=True):
|
||||||
|
|
||||||
def add_auto_aliases(aliases, env):
|
def add_auto_aliases(aliases, env):
|
||||||
conn, c = open_database(env, with_connection=True)
|
conn, c = open_database(env, with_connection=True)
|
||||||
c.execute("DELETE FROM auto_aliases");
|
c.execute("DELETE FROM auto_aliases")
|
||||||
for source, destination in aliases.items():
|
for source, destination in aliases.items():
|
||||||
c.execute("INSERT INTO auto_aliases (source, destination) VALUES (?, ?)", (source, destination))
|
c.execute("INSERT INTO auto_aliases (source, destination) VALUES (?, ?)", (source, destination))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
|
@ -213,7 +213,7 @@ def run_migrations():
|
||||||
migration_id = None
|
migration_id = None
|
||||||
if os.path.exists(migration_id_file):
|
if os.path.exists(migration_id_file):
|
||||||
with open(migration_id_file) as f:
|
with open(migration_id_file) as f:
|
||||||
migration_id = f.read().strip();
|
migration_id = f.read().strip()
|
||||||
|
|
||||||
if migration_id is None:
|
if migration_id is None:
|
||||||
# Load the legacy location of the migration ID. We'll drop support
|
# Load the legacy location of the migration ID. We'll drop support
|
||||||
|
|
Loading…
Reference in New Issue