From 61444b8ecbecdb138dc5c731e89379d7ef0a7f32 Mon Sep 17 00:00:00 2001 From: SergBobrovsky Date: Sun, 19 Dec 2021 20:27:32 +0300 Subject: Update Util.py It looks like here is the only call of containsOnly(). This func looks a bit confusing: name like containsAll/Any, same signature but other semantics. So I propose to kick it out at all, with tests ) --- SCons/Util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCons/Util.py b/SCons/Util.py index cbd99b0..9999821 100644 --- a/SCons/Util.py +++ b/SCons/Util.py @@ -99,7 +99,7 @@ def splitext(path) -> tuple: sep = rightmost_separator(path, os.sep) dot = path.rfind('.') # An ext is only real if it has at least one non-digit char - if dot > sep and not containsOnly(path[dot:], "0123456789."): + if dot > sep and not path[dot + 1:].isDigit(): return path[:dot], path[dot:] return path, "" -- cgit v0.12 From 32c6d99f82aa163958f952bcbccf3d678d70cf46 Mon Sep 17 00:00:00 2001 From: SergBobrovsky Date: Sun, 19 Dec 2021 21:57:11 +0300 Subject: Update Util.py --- SCons/Util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCons/Util.py b/SCons/Util.py index 9999821..5bdb9d0 100644 --- a/SCons/Util.py +++ b/SCons/Util.py @@ -99,7 +99,7 @@ def splitext(path) -> tuple: sep = rightmost_separator(path, os.sep) dot = path.rfind('.') # An ext is only real if it has at least one non-digit char - if dot > sep and not path[dot + 1:].isDigit(): + if dot > sep and not path[dot + 1:].isdigit(): return path[:dot], path[dot:] return path, "" -- cgit v0.12