Skip to content

Commit

Permalink
Merge pull request #35912 from qgis-bot/backport-35869-to-release-3_12
Browse files Browse the repository at this point in the history
[Backport release-3_12] fix deprecation warning in qgis.utils (fix #32786)
  • Loading branch information
m-kuhn committed Apr 22, 2020
2 parents 245fc0e + 4c84381 commit 1201e2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/utils.py
Expand Up @@ -545,9 +545,8 @@ def reloadProjectMacros():
return

# create a new empty python module
import imp

mod = imp.new_module("proj_macros_mod")
import importlib
mod = importlib.util.module_from_spec(importlib.machinery.ModuleSpec("proj_macros_mod", None))

# set the module code and store it sys.modules
exec(str(code), mod.__dict__)
Expand Down

0 comments on commit 1201e2b

Please sign in to comment.