summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-03-02 08:11:28 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-03-02 08:11:28 -0500
commit5b3edbe7ef552f09cb5cae62bcdfd7bac0a86f2b (patch)
tree6c191467583eb8bae6e79d94643dca356317b875 /bs4/element.py
parent8333c2b5bfd78dfcc9544403a6e1d285f587475b (diff)
Fixed a bug that caused calling a tag to sometimes call find_all() with the wrong arguments. [bug=944426]
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 584e171..2851a75 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -838,7 +838,7 @@ class Tag(PageElement):
"""Calling a tag like a function is the same as calling its
find_all() method. Eg. tag('a') returns a list of all the A tags
found within this tag."""
- return self.find_all(args, kwargs)
+ return self.find_all(*args, **kwargs)
def __getattr__(self, tag):
#print "Getattr %s.%s" % (self.__class__, tag)