Change tabs to 4 spaces in python files

This commit is contained in:
Ondrej Mikle 2017-10-22 17:27:44 +02:00
parent 5d41737f80
commit 2482462a73
6 changed files with 420 additions and 420 deletions

View file

@ -10,23 +10,23 @@ import sys
import sqlite3
if __name__ == "__main__":
if len(sys.argv) < 2:
print >> sys.stderr, "You must specify filename as arg1 where the DB is to be created"
filename = sys.argv[1]
conn = sqlite3.connect(filename)
cursor = conn.cursor()
cursor.execute("""CREATE TABLE authorized_uids(
id INTEGER PRIMARY KEY AUTOINCREMENT,
uid_hex TEXT,
nick TEXT)
""")
cursor.execute("""CREATE TABLE authorized_hmac_keys(
id INTEGER PRIMARY KEY AUTOINCREMENT,
uid_hex TEXT,
key_hex TEXT,
nick TEXT)
""")
conn.commit()
conn.close()
if len(sys.argv) < 2:
print >> sys.stderr, "You must specify filename as arg1 where the DB is to be created"
filename = sys.argv[1]
conn = sqlite3.connect(filename)
cursor = conn.cursor()
cursor.execute("""CREATE TABLE authorized_uids(
id INTEGER PRIMARY KEY AUTOINCREMENT,
uid_hex TEXT,
nick TEXT)
""")
cursor.execute("""CREATE TABLE authorized_hmac_keys(
id INTEGER PRIMARY KEY AUTOINCREMENT,
uid_hex TEXT,
key_hex TEXT,
nick TEXT)
""")
conn.commit()
conn.close()