From c42fbc6cc009fa2bda0d90dcdfb81e572ebb5060 Mon Sep 17 00:00:00 2001 From: Joseph Hall Date: Thu, 24 May 2012 08:43:08 -0600 Subject: [PATCH] Change "if cur == False" to "if not cur", as per PEP8 --- salt/modules/sqlite3.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/salt/modules/sqlite3.py b/salt/modules/sqlite3.py index 4b27724833..d3bdffc62d 100644 --- a/salt/modules/sqlite3.py +++ b/salt/modules/sqlite3.py @@ -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;")