Skip to content
Permalink
Browse files

Fix python errors

  • Loading branch information
m-kuhn committed May 5, 2020
1 parent f0ab7fd commit 3b95a97aee142f937b6819a0a8d7c8226d55c020
Showing with 3 additions and 4 deletions.
  1. +1 −1 scripts/context_help_id.py
  2. +1 −1 scripts/symbol_xml2db.py
  3. +1 −2 scripts/widgets_tree.py
@@ -42,7 +42,7 @@
# to decimal
context_id = int(hash.hexdigest()[:12], 16)
# print the result
print context_id
print(context_id)
else:
# if no class name was specified, give a bit of help
print "To generate a context sensitive help id, specify the QGIS class name on the command line"
@@ -62,7 +62,7 @@
# Create the DB with required Schema
conn = sqlite3.connect(dbfile)
c = conn.cursor()
print "Creating tables in the Database\n"
print("Creating tables in the Database\n")
for table in create_tables:
try:
c.execute(table)
@@ -116,8 +116,7 @@ def xml(self):
widget = loadUi(p)
#print dir ( ui )
self.widgetXml(element, widget)
except Exception, e:
#except IOError, e:
except Exception as e:
self.printMsg(str(e))

return self.doc.toString(2)

0 comments on commit 3b95a97

Please sign in to comment.
You can’t perform that action at this time.