[Libreoffice-commits] core.git: pyuno/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 20 10:38:17 UTC 2020
pyuno/source/loader/pythonloader.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0a3d414fb0ac27292320d99f802722a8a9670240
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed May 20 11:35:09 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed May 20 12:37:38 2020 +0200
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 at collabora.co.uk>
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('/')] )
More information about the Libreoffice-commits
mailing list