Mercurial > hgrepos > Python > apps > py-cutils
diff cutils/util/constants.py @ 164:a813094ae4f5
Move PY2 from cutils.util.constants into cutils.util
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 09 Jan 2025 13:48:57 +0100 |
| parents | dfe7bb0579e2 |
| children | 0f4febf646f5 |
line wrap: on
line diff
--- a/cutils/util/constants.py Thu Jan 09 13:40:33 2025 +0100 +++ b/cutils/util/constants.py Thu Jan 09 13:48:57 2025 +0100 @@ -7,22 +7,20 @@ """ -__all__ = ["PY2", - "PATH_TYPES", +__all__ = ["PATH_TYPES", "READ_CHUNK_SIZE", "MAX_AUTO_MAP_SIZE", "MAP_WINDOW_SIZE" ] -import sys try: import pathlib except ImportError: pathlib = None +from . import PY2 -PY2 = sys.version_info[0] < 3 if PY2: PATH_TYPES = (unicode, str) # noqa: F821 (undefined name 'unicode')
