From 1b3c226e76f3bb433a067e09714113977a6bc709 2024-10-02 11:30:38 From: M Bussonnier Date: 2024-10-02 11:30:38 Subject: [PATCH] remove unused function (#14531) --- diff --git a/setupbase.py b/setupbase.py index baa386d..476b147 100644 --- a/setupbase.py +++ b/setupbase.py @@ -39,18 +39,6 @@ def execfile(fname, globs, locs=None): with open(fname, encoding="utf-8") as f: exec(compile(f.read(), fname, "exec"), globs, locs) -# A little utility we'll need below, since glob() does NOT allow you to do -# exclusion on multiple endings! -def file_doesnt_endwith(test,endings): - """Return true if test is a file and its name does NOT end with any - of the strings listed in endings.""" - if not isfile(test): - return False - for e in endings: - if test.endswith(e): - return False - return True - #--------------------------------------------------------------------------- # Basic project information #---------------------------------------------------------------------------