diff options
author | Leonard Richardson <leonardr@segfault.org> | 2012-07-02 16:10:06 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2012-07-02 16:10:06 -0400 |
commit | 23329a21c2a00c312f024579cb47040f737cb6fe (patch) | |
tree | 200ed50ba44483c2a172b207c67e55d8e4f040ec /bs4/__init__.py | |
parent | 7b17371e76d75af684466e2d13745b683b864f5b (diff) |
Fixed a typo that made parsing much slower than it should have been. [bug=1020268]
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r-- | bs4/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py index af8c718..0e59a33 100644 --- a/bs4/__init__.py +++ b/bs4/__init__.py @@ -267,7 +267,7 @@ class BeautifulSoup(Tag): for i in range(len(self.tagStack) - 1, 0, -1): if (name == self.tagStack[i].name - and nsprefix == self.tagStack[i].nsprefix == nsprefix): + and nsprefix == self.tagStack[i].prefix): numPops = len(self.tagStack) - i break if not inclusivePop: |