pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ipython/ipython/commit/0146ca849cd3d2b770ab8f8efb4945de70e1e3d7

Emit deprecations warnings · ipython/ipython@0146ca8 · GitHub
Skip to content

Commit 0146ca8

Browse files
committed
Emit deprecations warnings
1 parent 7bd2574 commit 0146ca8

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

IPython/utils/path.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import shutil
1313
import random
1414
import glob
15+
import warnings
1516

1617
from IPython.utils.process import system
1718

@@ -295,6 +296,11 @@ def target_outdated(target,deps):
295296
296297
.. deprecated:: 8.22
297298
"""
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+
)
298304
try:
299305
target_time = os.path.getmtime(target)
300306
except os.error:
@@ -319,7 +325,12 @@ def target_update(target,deps,cmd):
319325
.. deprecated:: 8.22
320326
"""
321327

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):
323334
system(cmd)
324335

325336

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy