GeezerVison is showing github.com — bpo-31844: Remove _markupbase.ParserBase.error() by berkerpeksag · Pull Request #8562 · python/cpython
Conversation
berkerpeksag
commented
Jul 30, 2018
•
edited by bedevere-bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ezio-melotti reacted with thumbs up emoji
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.
There are still calls to self.error() in the code that should be removed too before removing the error method.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again.
@ezio-melotti I kept exceptions, but let me know if you want me to replace them with return -1 instead.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes!
@ezio-melotti: please review the changes made to this pull request.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot AMD64 FreeBSD Shared 3.x has failed when building commit e34bbfd.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/152/builds/1153) and take a look at the build logs.
- Check if the failure is related to this commit (e34bbfd) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/all/#builders/152/builds/1153
Failed tests:
Failed subtests:
- test_call_later - test.test_asyncio.test_events.PollEventLoopTests
Summary of the results of the build (if available):
==
Click to see traceback logs
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/test/test_asyncio/test_events.py", line 301, in test_call_later
self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
AssertionError: False is not true : 0.00010797599679790437
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot PPC64LE RHEL8 LTO + PGO 3.x has failed when building commit e34bbfd.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/450/builds/693) and take a look at the build logs.
- Check if the failure is related to this commit (e34bbfd) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/all/#builders/450/builds/693
Failed tests:
Failed subtests:
- test_nlst - test.test_ftplib.TestFTPClass
Summary of the results of the build (if available):
== Tests result: FAILURE then ENV CHANGED ==
408 tests OK.
10 slowest tests:
- test_peg_generator: 6 min 26 sec
- test_concurrent_futures: 2 min 59 sec
- test_multiprocessing_spawn: 1 min 15 sec
- test_tokenize: 1 min 14 sec
- test_multiprocessing_forkserver: 1 min 3 sec
- test_asyncio: 56.4 sec
- test_multiprocessing_fork: 54.7 sec
- test_lib2to3: 47.4 sec
- test_signal: 46.8 sec
- test_unparse: 45.9 sec
1 test altered the execution environment:
test_asyncio
14 tests skipped:
test_devpoll test_gdb test_ioctl test_kqueue test_msilib
test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly
test_winconsoleio test_winreg test_winsound test_zipfile64
1 re-run test:
test_ftplib
Total duration: 6 min 47 sec
Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_ftplib.py", line 630, in test_nlst
self.client.nlst()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/ftplib.py", line 546, in nlst
self.retrlines(cmd, files.append)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/ftplib.py", line 458, in retrlines
line = fp.readline(self.maxline + 1)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/socket.py", line 704, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
xzy3
pushed a commit
to xzy3/cpython
that referenced
this pull request
Oct 18, 2020
nmlorg
added a commit
to nmlorg/metabot
that referenced
this pull request
Jul 8, 2023
… through Python 3.9. Removing it generated:
metabot/util/html.py:13:0: W0223: Method 'error' is abstract in class 'ParserBase' but is not overridden in child class '_HTMLSanitizer' (abstract-method)
(as well as a potential problem if any error conditions in _markupbase.ParserBase actually triggered).
However, it was removed entirely in 3.10 (see python/cpython#8562). Leaving it in generates:
metabot/util/html.py:72:4: C0116: Missing function or method docstring (missing-function-docstring)
(see https://github.com/nmlorg/metabot/actions/runs/5492368318/jobs/10009796391).
dalf
pushed a commit
to searxng/searxng
that referenced
this pull request
Oct 22, 2023
In python versions <py3.10 there is an issue with an undocumented method
HTMLParser.error() [1][2] that was deprecated in Python 3.4 and removed
in Python 3.5.
To be compatible to higher versions (>=py3.10) an error method is implemented
which throws an AssertionError exception like the higher Python versions do [3].
[1] python/cpython#76025
[2] https://bugs.python.org/issue31844
[3] python/cpython#8562
Signed-off-by: Markus Heiser <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|