summaryrefslogtreecommitdiff
path: root/pyuno/source/loader/pythonloader.py
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-20 11:35:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-20 12:37:38 +0200
commit0a3d414fb0ac27292320d99f802722a8a9670240 (patch)
treebed62b05b829f9d60bb439affa6afb207d772c14 /pyuno/source/loader/pythonloader.py
parent1553d3787cbe0cdababf31382bf3376a3640d8cf (diff)
fix some more python 3.8 deprecation warnings
Change-Id: I8bdbf05f1357aea83a3cdda2f06d63c7d04de8f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94561 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno/source/loader/pythonloader.py')
-rw-r--r--pyuno/source/loader/pythonloader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/loader/pythonloader.py b/pyuno/source/loader/pythonloader.py
index 4233c0e7ca6e..5b824a3c26a1 100644
--- a/pyuno/source/loader/pythonloader.py
+++ b/pyuno/source/loader/pythonloader.py
@@ -19,7 +19,7 @@
import uno
import unohelper
import sys
-import imp
+import types
import os
from com.sun.star.uno import Exception,RuntimeException
from com.sun.star.loader import XImplementationLoader
@@ -82,7 +82,7 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
# did we load the module already ?
mod = g_loadedComponents.get( url )
if not mod:
- mod = imp.new_module("uno_component")
+ mod = types.ModuleType("uno_component")
# check for pythonpath.zip beside .py files
checkForPythonPathBesideComponent( url[0:url.rfind('/')] )