Skip to content
Permalink
Browse files

fix deprecation warning in qgis.utils (fix #32786)

  • Loading branch information
github-actions authored and nyalldawson committed Apr 22, 2020
1 parent ec80021 commit bf55fc31804186b5610dbcbb58dc4a9e9f0fef36
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/utils.py
@@ -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__)

0 comments on commit bf55fc3

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