Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix python errors
  • Loading branch information
m-kuhn committed May 5, 2020
1 parent f0ab7fd commit 3b95a97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/context_help_id.py
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion scripts/symbol_xml2db.py
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions scripts/widgets_tree.py
Expand Up @@ -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)
Expand Down

0 comments on commit 3b95a97

Please sign in to comment.