summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2013-05-06 17:56:35 -0400
committerLeonard Richardson <leonardr@segfault.org>2013-05-06 17:56:35 -0400
commit3ad71fceec0002be87306174f0b2464cc2342a7e (patch)
tree418b5d3baed56248f7536dfe8c4f758acb36283d /bs4/element.py
parent6bdd65ceb1177d0e5d50bbe51f21b1209c72b599 (diff)
Fix a bug by which keyword arguments to find_parent() were not being passed on. [bug=1126734]
Diffstat (limited to 'bs4/element.py')
-rw-r--r--bs4/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py
index bc6d9c8..77c8da0 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -436,7 +436,7 @@ class PageElement(object):
# NOTE: We can't use _find_one because findParents takes a different
# set of arguments.
r = None
- l = self.find_parents(name, attrs, 1)
+ l = self.find_parents(name, attrs, 1, **kwargs)
if l:
r = l[0]
return r