Skip to content

Commit

Permalink
fix warning message. See #46, #47
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Mar 18, 2021
1 parent f72d5ef commit 89fbdc2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions yacman/yacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

_LOGGER = logging.getLogger(__name__)


# Hack for string indexes of both ordered and unordered yaml representations
# Credit: Anthon
# https://stackoverflow.com/questions/50045617
Expand Down Expand Up @@ -362,13 +361,13 @@ def writable(self):

def _warn_deprecated(obj):
fun_name = _getframe().f_back.f_code.co_name
warn(
f"The '{fun_name}' property is deprecated and will be removed in a future relase."
f" Use {obj.__class__.__name__}.{IK}.{fun_name} instead.",
warnings.warn(
f"The '{fun_name}' property is deprecated and will be removed in a future release."
f" Use {obj.__class__.__name__}[{IK}][{fun_name}] instead.",
UserWarning,
stacklevel=4
)


def _check_filepath(filepath):
"""
Validate if the filepath attr/arg is a str
Expand Down

0 comments on commit 89fbdc2

Please sign in to comment.