Skip to content

Commit

Permalink
Fix python deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 7, 2016
1 parent 54522fd commit 272cd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def runandload(name, *args, **kwargs):

def version():
pluginPath = os.path.split(os.path.dirname(__file__))[0]
cfg = configparser.SafeConfigParser()
cfg = configparser.ConfigParser()
cfg.read(os.path.join(pluginPath, 'metadata.txt'))
ver = cfg.get('general', 'version').split('.')
return 10000 * int(ver[0]) + 100 * int(ver[1]) + int(ver[2])

0 comments on commit 272cd38

Please sign in to comment.