summaryrefslogtreecommitdiff
path: root/beautifulsoup/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-01-28 21:08:42 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-01-28 21:08:42 -0500
commit7a6f07b1650eaba61d4c669feb5565cf443b2531 (patch)
treed00ed1687710ffd18929ce44319330900a84c67a /beautifulsoup/__init__.py
parent58a9d28ced3c133dc945266024e629335af16196 (diff)
parentf0b1b4f0f3c2ce4e140ba01a6690ddb16bf0fb17 (diff)
Made .string a dynamic property.
Diffstat (limited to 'beautifulsoup/__init__.py')
-rw-r--r--beautifulsoup/__init__.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/beautifulsoup/__init__.py b/beautifulsoup/__init__.py
index 8817164..4a7e18b 100644
--- a/beautifulsoup/__init__.py
+++ b/beautifulsoup/__init__.py
@@ -194,13 +194,6 @@ class BeautifulStoneSoup(Tag):
def popTag(self):
tag = self.tagStack.pop()
- # Tags with just one string-owning child get the child as a
- # 'string' property, so that soup.tag.string is shorthand for
- # soup.tag.contents[0]
- if len(self.currentTag.contents) == 1 and \
- isinstance(self.currentTag.contents[0], NavigableString):
- self.currentTag.string = self.currentTag.contents[0]
-
#print "Pop", tag.name
if self.tagStack:
self.currentTag = self.tagStack[-1]