HEX
Server: Apache/2.4.65 (Unix) OpenSSL/1.1.1k
System: Linux vps109042.inmotionhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: cisa (1010)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //opt/imh-python/lib/python3.9/site-packages/pr2modules/__init__.py
'''
This namespace is here only to provide compatibility with 0.6.x

It will be removed in 0.8.x
'''

import sys
import warnings

# load pyroute2 entry points
import pyroute2  # noqa: F401

warnings.warn(
    'pr2modules namespace is deprecated, use pyroute2 instead',
    DeprecationWarning,
)

# alias every `pyroute2` entry, in addition to the block above
#
# Bug-Url: https://github.com/svinota/pyroute2/issues/913
#
for key, value in list(sys.modules.items()):
    if key.startswith("pyroute2."):
        sys.modules[key.replace("pyroute2", "pr2modules")] = value