New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #117: Fix bug with finding comment node #118
Conversation
You should start from baron. Take a glance for #95 issue. |
Added `find_iter` method, which is became base for `find` and `find_all` methods.
Before my changes:
After my changes:
|
You should add test cases. Without them it is difficult to say something about code. I advise you to check another nodes with |
But I've added a test cases: https://github.com/PyCQA/redbaron/pull/118/files#diff-38f83afa1ef19109e4de1a26496bc4c9L922 |
@gtors Okay. In first commit I did not see it. |
Is this getting merged in ? I just encounted a similar comment parsing bug. @b5y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good. So two things take place in the same commit.
First, refactoring find
and find_all
in find_iter
which is super neat.
Second, fixing the comment issue. Thanks for adding tests for that! But can you link to the exact line(s) in the commit that fixes it? My eye can't find it.
Also, could you add two lines to the CHANGELOG explaining the new find_iter
function and the fix as well as adding the find_iter
function in the documentation?
AFAICR,
Ok, but as soon as I have some free time. |
Nice catch!
@gtors no worries, I'll add the changes myself |
Fix released https://pypi.python.org/pypi/redbaron/0.6.3 |
Added
find_iter
method, which is became base forfind
andfind_all
methods.