summaryrefslogtreecommitdiff
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-01-11 07:09:42 -0800
committerSenthil Kumaran <senthil@uthcode.com>2016-01-11 07:09:42 -0800
commit96b531abd5bac9707e1b8f714c4d9259958726f9 (patch)
tree116553d357e375ab139f5d4d0c0ee63069f682aa /Lib/trace.py
parentf7272a667e9964fd203ab21ca6fe12f0e5b38a8a (diff)
downloadcpython-git-96b531abd5bac9707e1b8f714c4d9259958726f9.tar.gz
Issue #26069: Remove the deprecated apis in the trace module.
Diffstat (limited to 'Lib/trace.py')
-rwxr-xr-xLib/trace.py43
1 files changed, 0 insertions, 43 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index f108266816..b768829e9b 100755
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -58,7 +58,6 @@ import inspect
import gc
import dis
import pickle
-from warnings import warn as _warn
from time import monotonic as _time
try:
@@ -810,47 +809,5 @@ def main(argv=None):
if not no_report:
results.write_results(missing, summary=summary, coverdir=coverdir)
-# Deprecated API
-def usage(outfile):
- _warn("The trace.usage() function is deprecated",
- DeprecationWarning, 2)
- _usage(outfile)
-
-class Ignore(_Ignore):
- def __init__(self, modules=None, dirs=None):
- _warn("The class trace.Ignore is deprecated",
- DeprecationWarning, 2)
- _Ignore.__init__(self, modules, dirs)
-
-def modname(path):
- _warn("The trace.modname() function is deprecated",
- DeprecationWarning, 2)
- return _modname(path)
-
-def fullmodname(path):
- _warn("The trace.fullmodname() function is deprecated",
- DeprecationWarning, 2)
- return _fullmodname(path)
-
-def find_lines_from_code(code, strs):
- _warn("The trace.find_lines_from_code() function is deprecated",
- DeprecationWarning, 2)
- return _find_lines_from_code(code, strs)
-
-def find_lines(code, strs):
- _warn("The trace.find_lines() function is deprecated",
- DeprecationWarning, 2)
- return _find_lines(code, strs)
-
-def find_strings(filename, encoding=None):
- _warn("The trace.find_strings() function is deprecated",
- DeprecationWarning, 2)
- return _find_strings(filename, encoding=None)
-
-def find_executable_linenos(filename):
- _warn("The trace.find_executable_linenos() function is deprecated",
- DeprecationWarning, 2)
- return _find_executable_linenos(filename)
-
if __name__=='__main__':
main()