From b36f25a5174ef0896d6666b7f68e4ca46326c332 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sat, 3 Jun 2023 03:09:38 -0700 Subject: [PATCH] core: python3 support for core.walk We want strings to come back from walk() so avoid passing encoded paths to os.walk(). Signed-off-by: David Aguilar --- cola/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cola/core.py b/cola/core.py index 05cdbd0c..52eca611 100644 --- a/cola/core.py +++ b/cola/core.py @@ -523,4 +523,7 @@ relpath = wrap(mkpath, os.path.relpath, decorator=decode) remove = wrap(mkpath, os.remove) stat = wrap(mkpath, os.stat) unlink = wrap(mkpath, os.unlink) -walk = wrap(mkpath, os.walk) +if PY2: + walk = wrap(mkpath, os.walk) +else: + walk = os.walk -- 2.11.4.GIT