Skip to content
Permalink
Browse files

Fix python deprecation warning

  • Loading branch information
nyalldawson committed Nov 7, 2016
1 parent 54522fd commit 272cd3801801cf6f406e28a8122f3dc5e22fc703
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/general.py
@@ -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.
You can’t perform that action at this time.