Skip to content

Commit

Permalink
python 3.4 stricter rule
Browse files Browse the repository at this point in the history
see http://bugs.python.org/issue7994
a = None ; "{0:s}".format(a) is no more accepted in Python3.4
"{0!s}".format(a)  is ok , but not a good fix
  • Loading branch information
stonebig committed Jun 9, 2014
1 parent 05fe3ca commit 04af0c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/sqlite_py_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def create_menu(self):
self.menu_help.add_command(label='about',
command=lambda: messagebox.showinfo(message="""
\nSqlite_py_manager : a graphic SQLite Client in 1 Python file
\nversion 2014-06-08c : 'The magic 8th PEP'
\nversion 2014-06-09a : 'The magic 8th PEP'
\n(https://github.com/stonebig/baresql/blob/master/examples)"""))

def create_toolbar(self):
Expand Down Expand Up @@ -1056,9 +1056,10 @@ def get_things(conn, what, attached_db="", tbl=""):
# or what : other 'what' specification to use in thi dictionnary
dico = {
'index': 'trigger',
'trigger': ("""SELECT '{0:s}' || name, name, sql FROM
{0:s}sqlite_master WHERE type='{1:s}' ORDER BY name""",
'{0:s}', '{1:s}', '{2:s}', ''),
'trigger': (
"""SELECT '{0:s}' || name, name, coalesce(sql,'--auto') sql
FROM {0:s}sqlite_master WHERE type='{1:s}' ORDER BY name""",
'{0:s}', '{1:s}', '{2:s}', ''),
'master_table': (
"""SELECT '{0:s}sqlite_master', 'sqlite_master', '--auto'
UNION
Expand Down

0 comments on commit 04af0c0

Please sign in to comment.