aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.com>2023-12-13 07:22:59 +0300
committershadchin <shadchin@yandex-team.com>2023-12-13 07:41:24 +0300
commit614f8ad1d12f058756e498413319e60a861a97e6 (patch)
treeb5cfb169beb36282ee71ee77a5e07d621dab7085
parent4196ba35117330d4f0ad63aafcf61ef347a39c5a (diff)
downloadydb-614f8ad1d12f058756e498413319e60a861a97e6.tar.gz
Support Python 3.12 for `future`
-rw-r--r--contrib/python/future/py3/future/standard_library/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/python/future/py3/future/standard_library/__init__.py b/contrib/python/future/py3/future/standard_library/__init__.py
index 41c4f36df2..cf870ad0ce 100644
--- a/contrib/python/future/py3/future/standard_library/__init__.py
+++ b/contrib/python/future/py3/future/standard_library/__init__.py
@@ -62,7 +62,7 @@ from __future__ import absolute_import, division, print_function
import sys
import logging
-import imp
+import importlib
import contextlib
import types
import copy
@@ -297,8 +297,7 @@ class RenameImport(object):
flog.debug('What to do here?')
name = bits[0]
- module_info = imp.find_module(name, path)
- return imp.load_module(name, *module_info)
+ return importlib.import_module(name, path)
class hooks(object):