Skip to content

Commit d229718

Browse files
committed
Fix problem in xpath code with python > 3.6, which doesnt like this explicit exception
1 parent 53d5a75 commit d229718

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

AdvancedHTMLParser/xpath/_body.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Copyright (c) 2019 Timothy Savannah under terms of LGPLv3. All Rights Reserved.
2+
Copyright (c) 2019, 2023 Timothy Savannah under terms of LGPLv3. All Rights Reserved.
33
44
See LICENSE (https://gnu.org/licenses/lgpl-3.0.txt) for more information.
55
@@ -128,8 +128,6 @@ def __iter__(self):
128128
for bodyElement in self.bodyElements:
129129
yield bodyElement
130130

131-
raise StopIteration()
132-
133131

134132
def evaluateLevelForTag(self, currentTag):
135133
'''

0 commit comments

Comments
 (0)