From 7bd257449879e1922f52451f5a7a99465f1f4f43 2024-02-19 19:57:00 From: Matthias Koeppe Date: 2024-02-19 19:57:00 Subject: [PATCH] IPython/utils/path.py: Deprecate unused functions target_outdated, target_update --- diff --git a/IPython/utils/path.py b/IPython/utils/path.py index ccb70dc..7c916cd 100644 --- a/IPython/utils/path.py +++ b/IPython/utils/path.py @@ -292,6 +292,8 @@ def target_outdated(target,deps): If target doesn't exist or is older than any file listed in deps, return true, otherwise return false. + + .. deprecated:: 8.22 """ try: target_time = os.path.getmtime(target) @@ -312,7 +314,10 @@ def target_update(target,deps,cmd): target_update(target,deps,cmd) -> runs cmd if target is outdated. This is just a wrapper around target_outdated() which calls the given - command if target is outdated.""" + command if target is outdated. + + .. deprecated:: 8.22 + """ if target_outdated(target,deps): system(cmd)