diff options
author | Leonard Richardson <leonardr@segfault.org> | 2013-05-31 09:44:37 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2013-05-31 09:44:37 -0400 |
commit | 40d0fcd877e58f2862025f5a39a8ab0861e12b8b (patch) | |
tree | 56da721ec08ef341474cb1836a4c3c14e52b21cb /bs4/element.py | |
parent | 9ebf90c684990306433b6c364a93b425a88ef2e7 (diff) |
Reverted the patch that gives NavigableString a .name property, because that's too big an API change for a bugfix release.
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bs4/element.py b/bs4/element.py index 538f6b6..f6864f2 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -672,13 +672,6 @@ class NavigableString(unicode, PageElement): output = self.format_string(self, formatter) return self.PREFIX + output + self.SUFFIX - @property - def name(self): - return None - - @name.setter - def name(self, name): - raise AttributeError("A NavigableString cannot be given a name.") class PreformattedString(NavigableString): """A NavigableString not subject to the normal formatting rules. |