summaryrefslogtreecommitdiff
path: root/src/beautifulsoup/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2010-12-24 10:09:17 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2010-12-24 10:09:17 -0500
commit66237256dfec2976aa62cff78ae1dbeafab0c4cf (patch)
tree9d411f0186f5bfcfe4cacf34099b48e6e4588f5c /src/beautifulsoup/element.py
parent7cf03ca17f51970579ead05953cfa2306877c44c (diff)
Since this is 4.0, got rid of compatibility methods.
Diffstat (limited to 'src/beautifulsoup/element.py')
-rw-r--r--src/beautifulsoup/element.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/beautifulsoup/element.py b/src/beautifulsoup/element.py
index 3bdb01f..b5b8e84 100644
--- a/src/beautifulsoup/element.py
+++ b/src/beautifulsoup/element.py
@@ -696,25 +696,6 @@ class Tag(PageElement, Entities):
return self._findAll(name, attrs, text, limit, generator, **kwargs)
findChildren = findAll
- # Pre-3.x compatibility methods. Will go away in 4.0.
- first = find
- fetch = findAll
-
- def fetchText(self, text=None, recursive=True, limit=None):
- return self.findAll(text=text, recursive=recursive, limit=limit)
-
- def firstText(self, text=None, recursive=True):
- return self.find(text=text, recursive=recursive)
-
- # 3.x compatibility methods. Will go away in 4.0.
- def renderContents(self, encoding=DEFAULT_OUTPUT_ENCODING,
- prettyPrint=False, indentLevel=0):
- if encoding is None:
- return self.decodeContents(prettyPrint, indentLevel, encoding)
- else:
- return self.encodeContents(encoding, prettyPrint, indentLevel)
-
-
#Private methods
def _getAttrMap(self):