diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-20 11:35:09 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-12-09 18:50:42 +0100 |
commit | 2b3b296115afed767e8c17e34fc49a7b38f9f192 (patch) | |
tree | 49ec61c078469484d39f3ab05aec76ce86646d90 /pyuno/source | |
parent | d85eaa0fe79aee2e6159990412beeb67d4cb818e (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>
(cherry picked from commit 0a3d414fb0ac27292320d99f802722a8a9670240)
Diffstat (limited to 'pyuno/source')
-rw-r--r-- | pyuno/source/loader/pythonloader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/loader/pythonloader.py b/pyuno/source/loader/pythonloader.py index 268cb168fe3c..0ecbf5d848a6 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('/')] ) |