8000 DEP: Deprecate quote_args (from numpy.distutils.misc_util) · numpy/numpy@dee09e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit dee09e6

Browse files
committed
DEP: Deprecate quote_args (from numpy.distutils.misc_util)
1 parent 6829957 commit dee09e6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

numpy/distutils/misc_util.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def clean_up_temporary_directory():
4242
'get_script_files', 'get_lib_source_files', 'get_data_files',
4343
'dot_join', 'get_frame', 'minrelpath', 'njoin',
44 8000 44
'is_sequence', 'is_string', 'as_list', 'gpaths', 'get_language',
45-
'quote_args', 'get_build_architecture', 'get_info', 'get_pkg_info',
45+
'get_build_architecture', 'get_info', 'get_pkg_info',
4646
'get_num_build_jobs']
4747

4848
class InstallableLib:
@@ -110,6 +110,13 @@ def get_num_build_jobs():
110110
return max(x for x in cmdattr if x is not None)
111111

112112
def quote_args(args):
113+
"""Quote list of arguments.
114+
115+
.. deprecated:: 1.22.
116+
"""
117+
import warnings
118+
warnings.warn('"quote_args" is deprecated.',
119+
DeprecationWarning, stacklevel=2)
113120
# don't used _nt_quote_args as it does not check if
114121
# args items already have quotes or not.
115122
args = list(args)

0 commit comments

Comments
 (0)
0