##// END OF EJS Templates
IPython/utils/path.py: Deprecate unused functions target_outdated, target_update
Matthias Koeppe -
Show More
@@ -292,6 +292,8 b' def target_outdated(target,deps):'
292
292
293 If target doesn't exist or is older than any file listed in deps, return
293 If target doesn't exist or is older than any file listed in deps, return
294 true, otherwise return false.
294 true, otherwise return false.
295
296 .. deprecated:: 8.22
295 """
297 """
296 try:
298 try:
297 target_time = os.path.getmtime(target)
299 target_time = os.path.getmtime(target)
@@ -312,7 +314,10 b' def target_update(target,deps,cmd):'
312 target_update(target,deps,cmd) -> runs cmd if target is outdated.
314 target_update(target,deps,cmd) -> runs cmd if target is outdated.
313
315
314 This is just a wrapper around target_outdated() which calls the given
316 This is just a wrapper around target_outdated() which calls the given
315 command if target is outdated."""
317 command if target is outdated.
318
319 .. deprecated:: 8.22
320 """
316
321
317 if target_outdated(target,deps):
322 if target_outdated(target,deps):
318 system(cmd)
323 system(cmd)
General Comments 0
You need to be logged in to leave comments. Login now