Skip to content

Commit

Permalink
Import warnings, not warn
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed May 14, 2024
1 parent 7d71926 commit 105fcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_build/jinja_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import pathlib
import re
import time
import warnings
from functools import partial
from io import StringIO, TextIOBase
from typing import TYPE_CHECKING
from warnings import warn

import jinja2
import yaml
Expand Down Expand Up @@ -207,7 +207,7 @@ def load_setuptools(
recipe_dir=None,
permit_undefined_jinja=True,
):
warn(
warnings.warn(
"conda_build.jinja_context.load_setuptools is pending deprecation in a future release. "
"Use conda_build.jinja_context.load_setup_py_data instead.",
PendingDeprecationWarning,
Expand Down

0 comments on commit 105fcf8

Please sign in to comment.