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 Sep 4, 2024
1 parent 267b569 commit d6fdde4
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,11 +9,11 @@
import pathlib
import re
import time
import warnings
from functools import partial
from io import StringIO, TextIOBase
from subprocess import CalledProcessError
from typing import TYPE_CHECKING
from warnings import warn

import jinja2
import yaml
Expand Down Expand Up @@ -213,7 +213,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 d6fdde4

Please sign in to comment.