Skip to content

Commit

Permalink
schedule debug arg for removal
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Nov 9, 2024
1 parent 6b18437 commit e5783c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pymatgen/util/io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import os
import re
import warnings
from typing import TYPE_CHECKING

from monty.io import zopen
Expand Down Expand Up @@ -65,8 +66,6 @@ def micro_pyawk(
run(results, match), where match is the Match object from running
Pattern.match.
TODO: deprecate and remove debug/postdebug?
Args:
filename (PathLike): The file to search through.
search (list[tuple[Pattern | str, Callable, Callable]]): The "search program" of
Expand All @@ -82,6 +81,12 @@ def micro_pyawk(
Author: Rickard Armiento, Ioannis Petousis
"""
# TODO: remove debug and postdebug after 2025-11-09 if no one is opposing
if debug is not None:
warnings.warn("arg debug is scheduled for removal, see PR4160", DeprecationWarning, stacklevel=2)
if postdebug is not None:
warnings.warn("arg postdebug is scheduled for removal, see PR4160", DeprecationWarning, stacklevel=2)

if results is None:
results = {}

Expand Down

0 comments on commit e5783c7

Please sign in to comment.