We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 545ed0a commit 6b579f2Copy full SHA for 6b579f2
dockerfile_parse/parser.py
@@ -11,6 +11,7 @@
11
import logging
12
import os
13
import re
14
+import warnings
15
from contextlib import contextmanager
16
from shlex import quote
17
@@ -867,7 +868,7 @@ def image_from(from_value):
867
868
:param from_value: string like "image:tag" or "image:tag AS name"
869
:return: tuple of the image and stage name, e.g. ("image:tag", None)
870
"""
- DeprecationWarning("Use image_name_from instead.")
871
+ warnings.warn("Use image_name_from instead.", DeprecationWarning)
872
image, name = image_name_from(from_value)
873
return str(image) if image else None, name
874
0 commit comments