summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/ccompiler.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-27 02:24:21 (GMT)
committerGreg Ward <gward@python.net>2000-09-27 02:24:21 (GMT)
commit264cf74e1a61048714fd168ecb7a7e9eaba6615a (patch)
tree786caf9a2b22cf5b99fc3246fc1c02d96416e5ce /Lib/distutils/ccompiler.py
parent4240648a9dffd4b8858c7314bce0c2b0af830b06 (diff)
downloadcpython-264cf74e1a61048714fd168ecb7a7e9eaba6615a.zip
cpython-264cf74e1a61048714fd168ecb7a7e9eaba6615a.tar.gz
cpython-264cf74e1a61048714fd168ecb7a7e9eaba6615a.tar.bz2
Remove deprecation warnings on old 'link_*()' methods, ie. they're not
deprecated after all. But now they're only implemented once, instead of N times.
Diffstat (limited to 'Lib/distutils/ccompiler.py')
-rw-r--r--Lib/distutils/ccompiler.py16
1 files changed, 5 insertions, 11 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index 9794906..b10ee67 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -621,7 +621,7 @@ class CCompiler:
raise NotImplementedError
- # old methods, rewritten to use the new link() method.
+ # Old 'link_*()' methods, rewritten to use the new 'link()' method.
def link_shared_lib (self,
objects,
@@ -635,8 +635,6 @@ class CCompiler:
extra_preargs=None,
extra_postargs=None,
build_temp=None):
- self.warn("link_shared_lib(..) is deprecated, please "
- "use link(CCompiler.SHARED_LIBRARY, ...) instead")
self.link(CCompiler.SHARED_LIBRARY, objects,
self.library_filename(output_libname, lib_type='shared'),
output_dir,
@@ -657,8 +655,6 @@ class CCompiler:
extra_preargs=None,
extra_postargs=None,
build_temp=None):
- self.warn("link_shared_object(...) is deprecated, please "
- "use link(CCompiler.SHARED_OBJECT,...) instead.")
self.link(CCompiler.SHARED_OBJECT, objects,
output_filename, output_dir,
libraries, library_dirs, runtime_library_dirs,
@@ -676,12 +672,10 @@ class CCompiler:
debug=0,
extra_preargs=None,
extra_postargs=None):
- self.warn("link_executable(...) is deprecated, please "
- "use link(CCompiler.EXECUTABLE,...) instead.")
- self.link (CCompiler.EXECUTABLE, objects,
- self.executable_filename(output_progname), output_dir,
- libraries, library_dirs, runtime_library_dirs, None,
- debug, extra_preargs, extra_postargs, None)
+ self.link(CCompiler.EXECUTABLE, objects,
+ self.executable_filename(output_progname), output_dir,
+ libraries, library_dirs, runtime_library_dirs, None,
+ debug, extra_preargs, extra_postargs, None)
# -- Miscellaneous methods -----------------------------------------