Change "if cur == False" to "if not cur", as per PEP8

This commit is contained in:
Joseph Hall 2012-05-24 08:43:08 -06:00
parent 6cc3390538
commit c42fbc6cc0

View File

@ -52,7 +52,7 @@ def modify(db=None, sql=None):
'''
cur = _connect(db)
if cur == False:
if not cur:
return False
cur.execute(sql)
@ -68,7 +68,7 @@ def fetch(db=None, sql=None):
'''
cur = _connect(db)
if cur == False:
if not cur:
return False
cur.execute(sql)
@ -85,7 +85,7 @@ def tables(db=None):
'''
cur = _connect(db)
if cur == False:
if not cur:
return False
cur.execute("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;")
@ -102,7 +102,7 @@ def indices(db=None):
'''
cur = _connect(db)
if cur == False:
if not cur:
return False
cur.execute("SELECT name FROM sqlite_master WHERE type='index' ORDER BY name;")