HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/pyzor/hacks/py3.py
"""Hacks for python2-3 compatibility."""

import sys


def reload(module):
    """Reload the modeule.

    This is handled differently according to the
    python version. This even varies across Python3
    versions
    """
    if sys.version_info[0] == 2:
        # Built-in method
        return reload(module)
    elif sys.version_info[0] == 3 and sys.version_info[1] <= 3:
        import imp
        return imp.reload(module)
    else:
        import importlib
        return importlib.reload(module)