Created attachment 1051473 [details] reproducer.py Description of problem: bs4 4.4.0 update breaks our script that works with previous version 4.3.2-3 Version-Release number of selected component (if applicable): python3-beautifulsoup4-4.4.0-1.fc22.noarch How reproducible: always Steps to Reproduce: 1. ./reproducer.py 2. 3. Actual results: dst= <class 'bs4.element.Tag'> src1= <class 'bs4.element.Tag'> dst= <class 'bs4.element.Tag'> src2= <class 'bs4.element.Tag'> dst= <class 'bs4.element.Tag'> src3= <class 'NoneType'> Traceback (most recent call last): File "./reproducer.py", line 84, in <module> update_html_template(html, 3) # regression File "./reproducer.py", line 75, in update_html_template dst.insert(0, src3) File "/usr/lib/python3.4/site-packages/bs4/element.py", line 317, in insert new_child.parent = self AttributeError: 'NoneType' object has no attribute 'parent' src3 find call fails which causes this backtrace Expected results: dst= <class 'bs4.element.Tag'> src1= <class 'bs4.element.Tag'> dst= <class 'bs4.element.Tag'> src2= <class 'bs4.element.Tag'> dst= <class 'bs4.element.Tag'> src3= <class 'bs4.element.Tag'> DONE <class 'bs4.BeautifulSoup'> Additional info:
Reported also to upstream bug tracker https://bugs.launchpad.net/beautifulsoup/+bug/1474732
Thanks for report!
python-beautifulsoup4-4.4.1-1.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-0aacd6a0a8
python-beautifulsoup4-4.4.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b5bc948c58
python-beautifulsoup4-4.4.1-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update python-beautifulsoup4' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-0f9c92ca7f
python-beautifulsoup4-4.4.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update python-beautifulsoup4' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b5bc948c58
python-beautifulsoup4-4.4.1-1.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update python-beautifulsoup4' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-0aacd6a0a8
python-beautifulsoup4-4.4.1-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
python-beautifulsoup4-4.4.1-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
python-beautifulsoup4-4.4.1-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.