Skip to content

Commit

Permalink
Merge pull request #151 from neutrinoceros/depr_2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Oct 4, 2023
2 parents f61b575 + d2bbd05 commit 83e4371
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions cmyt/_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import warnings
from collections.abc import Iterable, Sequence
from typing import TYPE_CHECKING, Any, Final, Literal, Optional

Expand Down Expand Up @@ -41,25 +40,6 @@ def prefix_name(name: str) -> str:
return name


def unprefix_name(name: str) -> str:
"""
Examples
--------
>>> unprefix_name("cmyt.arbre")
'arbre'
>>> unprefix_name("arbre")
'arbre'
"""
warnings.warn(
"cmyt._utils.unprefix_name is deprecated since version 1.4.0 "
"and will be removed in a future version. "
"Instead, use name.removeprefix('cmyt.')",
category=DeprecationWarning,
stacklevel=2,
)
return name.removeprefix(_CMYT_PREFIX)


def register_colormap(
name: str,
*,
Expand Down

0 comments on commit 83e4371

Please sign in to comment.