summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--library/python/runtime_py3/sitecustomize.pyx6
1 files changed, 0 insertions, 6 deletions
diff --git a/library/python/runtime_py3/sitecustomize.pyx b/library/python/runtime_py3/sitecustomize.pyx
index 0f15ff13a11..9171a561747 100644
--- a/library/python/runtime_py3/sitecustomize.pyx
+++ b/library/python/runtime_py3/sitecustomize.pyx
@@ -3,7 +3,6 @@ import io
import os
import re
import sys
-import warnings
from importlib.metadata import (
Distribution,
@@ -14,11 +13,6 @@ from importlib.resources.abc import Traversable
import __res
-with warnings.catch_warnings(action="ignore", category=DeprecationWarning):
- from importlib.abc import ResourceReader
-
-ResourceReader.register(__res._ResfsResourceReader)
-
METADATA_NAME = re.compile("^Name: (.*)$", re.MULTILINE)