diff cutils/util/__init__.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 fa7dd54e9715
children ed45abb4940f
line wrap: on
line diff
--- a/cutils/util/__init__.py	Thu Jan 09 13:40:33 2025 +0100
+++ b/cutils/util/__init__.py	Thu Jan 09 13:48:57 2025 +0100
@@ -7,7 +7,8 @@
 
 """
 
-__all__ = ["normalize_filename",
+__all__ = ["PY2",
+           "normalize_filename",
            "argv2algo",
            "algotag2algotype",
            "get_blake2b",
@@ -20,6 +21,10 @@
 import argparse
 import hashlib
 import os
+import sys
+
+
+PY2 = sys.version_info[0] < 3
 
 
 def get_blake2b():