summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/pytree.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-03-14 22:41:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-03-14 22:41:15 (GMT)
commit1a5e5de818a1393bbb32fabf2ee8ad8c239b6e9b (patch)
tree8454695ee3e36f84927877129e84e0913221ccc3 /Lib/lib2to3/pytree.py
parent7c466b4fdcdf59f8d98abcbf62dbbf4ab209d2db (diff)
downloadcpython-1a5e5de818a1393bbb32fabf2ee8ad8c239b6e9b.zip
cpython-1a5e5de818a1393bbb32fabf2ee8ad8c239b6e9b.tar.gz
cpython-1a5e5de818a1393bbb32fabf2ee8ad8c239b6e9b.tar.bz2
remove get_prefix and set_prefix (#13248)
Diffstat (limited to 'Lib/lib2to3/pytree.py')
-rw-r--r--Lib/lib2to3/pytree.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/lib2to3/pytree.py b/Lib/lib2to3/pytree.py
index fa4942f3..17cbf0a 100644
--- a/Lib/lib2to3/pytree.py
+++ b/Lib/lib2to3/pytree.py
@@ -109,26 +109,6 @@ class Base(object):
"""
raise NotImplementedError
- def set_prefix(self, prefix):
- """
- Set the prefix for the node (see Leaf class).
-
- DEPRECATED; use the prefix property directly.
- """
- warnings.warn("set_prefix() is deprecated; use the prefix property",
- DeprecationWarning, stacklevel=2)
- self.prefix = prefix
-
- def get_prefix(self):
- """
- Return the prefix for the node (see Leaf class).
-
- DEPRECATED; use the prefix property directly.
- """
- warnings.warn("get_prefix() is deprecated; use the prefix property",
- DeprecationWarning, stacklevel=2)
- return self.prefix
-
def replace(self, new):
"""Replace this node with a new one in the parent."""
assert self.parent is not None, str(self)