diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-07 19:18:03 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-07 19:18:03 -0500 |
commit | b0508df41dbc5a848566c659d8882a772366bb84 (patch) | |
tree | 14174c14e4c09084b542fe1538fe9d2755235fa5 /bs4/element.py | |
parent | 6590573e18a533f30c9635ecbd6af163d6826ef8 (diff) |
Renamed insert_before to move_before, to avoid confusion with the way insert() works.
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/element.py b/bs4/element.py index 478d285..3ee957f 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -190,7 +190,7 @@ class PageElement(object): """Appends the given tag to the contents of this tag.""" self.insert(len(self.contents), tag) - def insert_before(self, successor): + def move_before(self, successor): """Makes this element the immediate predecessor of the given element. The two elements will have the same parent, and this element @@ -204,7 +204,7 @@ class PageElement(object): index = parent.index(successor) parent.insert(index, self) - def insert_after(self, predecessor): + def move_after(self, predecessor): """Makes this element the immediate successor of the given element. The two elements will have the same parent, and this element |