summaryrefslogtreecommitdiff
path: root/bs4/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-02-07 21:16:03 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-02-07 21:16:03 -0500
commit62d5de7f5ac4211b688665dd5912d4c4fd82e95c (patch)
tree46561d2abc0a7a8cd38322cacb3c6e78ef21e489 /bs4/__init__.py
parentb0508df41dbc5a848566c659d8882a772366bb84 (diff)
BeautifulSoup objects don't support move_before() or move_after.
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r--bs4/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py
index 58f2960..af4563f 100644
--- a/bs4/__init__.py
+++ b/bs4/__init__.py
@@ -203,6 +203,12 @@ class BeautifulSoup(Tag):
navigable.setup()
return navigable
+ def move_before(self, successor):
+ raise ValueError("BeautifulSoup objects don't support move_before().")
+
+ def move_after(self, successor):
+ raise ValueError("BeautifulSoup objects don't support move_after().")
+
def popTag(self):
tag = self.tagStack.pop()
#print "Pop", tag.name