Show More
@@ -12,6 +12,7 b' import errno' | |||
|
12 | 12 | import shutil |
|
13 | 13 | import random |
|
14 | 14 | import glob |
|
15 | import warnings | |
|
15 | 16 | |
|
16 | 17 | from IPython.utils.process import system |
|
17 | 18 | |
@@ -295,6 +296,11 b' def target_outdated(target,deps):' | |||
|
295 | 296 | |
|
296 | 297 | .. deprecated:: 8.22 |
|
297 | 298 | """ |
|
299 | warnings.warn( | |
|
300 | "`target_outdated` is deprecated since IPython 8.22 and will be removed in future versions", | |
|
301 | DeprecationWarning, | |
|
302 | stacklevel=2, | |
|
303 | ) | |
|
298 | 304 | try: |
|
299 | 305 | target_time = os.path.getmtime(target) |
|
300 | 306 | except os.error: |
@@ -319,7 +325,12 b' def target_update(target,deps,cmd):' | |||
|
319 | 325 | .. deprecated:: 8.22 |
|
320 | 326 | """ |
|
321 | 327 | |
|
322 | if target_outdated(target,deps): | |
|
328 | warnings.warn( | |
|
329 | "`target_update` is deprecated since IPython 8.22 and will be removed in future versions", | |
|
330 | DeprecationWarning, | |
|
331 | stacklevel=2, | |
|
332 | ) | |
|
333 | if target_outdated(target, deps): | |
|
323 | 334 | system(cmd) |
|
324 | 335 | |
|
325 | 336 |
General Comments 0
You need to be logged in to leave comments.
Login now