diff --git a/sqlitedict.py b/sqlitedict.py index 3e65724..65186d7 100755 --- a/sqlitedict.py +++ b/sqlitedict.py @@ -360,7 +360,7 @@ def get_tablenames(filename): """get the names of the tables in an sqlite db as a list""" if not os.path.isfile(filename): raise IOError('file %s does not exist' % (filename)) - GET_TABLENAMES = 'SELECT name FROM sqlite_master WHERE type="table"' + GET_TABLENAMES = "SELECT name FROM sqlite_master WHERE type='table'" with sqlite3.connect(filename) as conn: cursor = conn.execute(GET_TABLENAMES) res = cursor.fetchall()