Skip to content

Commit d095eda

Browse files
committed
Merge branch '7.0branch'
2 parents 1d6b988 + 3252cda commit d095eda

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

AdvancedHTMLParser/Parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def containsUid(self, uid):
407407
@return <bool> - If #uid is found within this tree
408408
'''
409409
for rootNode in self.getRootNodes():
410-
if rootNode.containsUid(em):
410+
if rootNode.containsUid(uid):
411411
return True
412412

413413
return False
@@ -443,7 +443,7 @@ def filter(self, **kwargs):
443443
if canFilterTags is False:
444444
raise NotImplementedError('filter methods requires QueryableList installed, it is not. Either install QueryableList, or try the less-robust "find" method, or the getElement* methods.')
445445

446-
allNodes = self.getAllChildNodes() + [self]
446+
allNodes = self.getAllNodes()
447447

448448
filterableNodes = FilterableTagCollection(allNodes)
449449

AdvancedHTMLParser/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from .exceptions import InvalidCloseException, MissedCloseException, HTMLValidationException
1111
from .SpecialAttributes import StyleAttribute
1212

13-
__version__ = '7.0.0'
14-
__version_tuple__ = ('7', '0', '0')
15-
__int_version_tuple__ = (7, 0, 0)
13+
__version__ = '7.0.1'
14+
__version_tuple__ = ('7', '0', '1')
15+
__int_version_tuple__ = (7, 0, 1)
1616

1717
__all__ = ( 'AdvancedHTMLParser', 'IndexedAdvancedHTMLParser', 'AdvancedHTMLFormatter', 'AdvancedTag', 'TagCollection',
1818
'ValidatingAdvancedHTMLParser', 'MissedCloseException', 'InvalidCloseException', 'HTMLValidationException', 'StyleAttribute', 'toggleAttributesDOM' )

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* 7.0.1 Apr 28 2017
2+
3+
- Fix two typos which would result in exceptions
4+
15
* 7.0.0 Apr 6 2017
26
- Add "filter"-style functions (think ORM-style filtering, like
37
name__contains='abc' or name='abc' or name__ne='something'). Supports all filter operations provided by QueryableList

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
long_description = summary
3939

4040
setup(name='AdvancedHTMLParser',
41-
version='7.0.0',
41+
version='7.0.1',
4242
packages=['AdvancedHTMLParser'],
4343
scripts=['formatHTML'],
4444
author='Tim Savannah',

0 commit comments

Comments
 (0)