diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-07 21:16:03 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-07 21:16:03 -0500 |
commit | 62d5de7f5ac4211b688665dd5912d4c4fd82e95c (patch) | |
tree | 46561d2abc0a7a8cd38322cacb3c6e78ef21e489 /bs4/__init__.py | |
parent | b0508df41dbc5a848566c659d8882a772366bb84 (diff) |
BeautifulSoup objects don't support move_before() or move_after.
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r-- | bs4/__init__.py | 6 |
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 |