changeset 196:0f4febf646f5

Prepare for more Python2/3 compatibility: everywhere import print_function and absolute_import
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 16 Jan 2025 20:01:37 +0100
parents e5f6f4db9157
children 48e2610978e5
files cutils/util/__init__.py cutils/util/cm.py cutils/util/constants.py cutils/util/digest.py cutils/util/walk.py
diffstat 5 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cutils/util/__init__.py	Thu Jan 16 19:31:57 2025 +0100
+++ b/cutils/util/__init__.py	Thu Jan 16 20:01:37 2025 +0100
@@ -7,6 +7,9 @@
 
 """
 
+from __future__ import print_function, absolute_import
+
+
 __all__ = ["PY2",
            "PY35",
            "n", "b", "u",
--- a/cutils/util/cm.py	Thu Jan 16 19:31:57 2025 +0100
+++ b/cutils/util/cm.py	Thu Jan 16 20:01:37 2025 +0100
@@ -7,6 +7,9 @@
 
 """
 
+from __future__ import print_function, absolute_import
+
+
 __all__ = ["nullcontext"]
 
 
--- a/cutils/util/constants.py	Thu Jan 16 19:31:57 2025 +0100
+++ b/cutils/util/constants.py	Thu Jan 16 20:01:37 2025 +0100
@@ -7,6 +7,9 @@
 
 """
 
+from __future__ import print_function, absolute_import
+
+
 __all__ = ["PATH_TYPES",
            "READ_CHUNK_SIZE",
            "MAX_AUTO_MAP_SIZE",
--- a/cutils/util/digest.py	Thu Jan 16 19:31:57 2025 +0100
+++ b/cutils/util/digest.py	Thu Jan 16 20:01:37 2025 +0100
@@ -7,6 +7,9 @@
 
 """
 
+from __future__ import print_function, absolute_import
+
+
 __all__ = ["compute_digest_file", "compute_digest_stream"]
 
 
--- a/cutils/util/walk.py	Thu Jan 16 19:31:57 2025 +0100
+++ b/cutils/util/walk.py	Thu Jan 16 20:01:37 2025 +0100
@@ -7,6 +7,9 @@
 
 """
 
+from __future__ import print_function, absolute_import
+
+
 __all__ = ["ScanDir"]