Skip to content
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

bpo-31844: Remove _markupbase.ParserBase.error() #8562

Merged
merged 2 commits into from
Jul 16, 2020

Conversation

berkerpeksag
Copy link
Member

@berkerpeksag berkerpeksag commented Jul 30, 2018

Copy link
Member

@ezio-melotti ezio-melotti left a 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.

@bedevere-bot
Copy link

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@berkerpeksag
Copy link
Member Author

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.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@ezio-melotti: please review the changes made to this pull request.

Copy link
Member

@ezio-melotti ezio-melotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@berkerpeksag berkerpeksag merged commit e34bbfd into python:master Jul 16, 2020
@berkerpeksag berkerpeksag deleted the 31844-remove-error branch July 16, 2020 06:13
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 FreeBSD Shared 3.x has failed when building commit e34bbfd.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. 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.
  4. Check if the failure is related to this commit (e34bbfd) or if it is a false positive.
  5. 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:

  • test_asyncio

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

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64LE RHEL8 LTO + PGO 3.x has failed when building commit e34bbfd.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. 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.
  4. Check if the failure is related to this commit (e34bbfd) or if it is a false positive.
  5. 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:

  • test_ftplib

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

arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 4, 2020
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
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).
return42 added a commit to return42/searxng that referenced this pull request Oct 18, 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 <markus.heiser@darmarit.de>
return42 added a commit to return42/searxng that referenced this pull request Oct 19, 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 <markus.heiser@darmarit.de>
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 <markus.heiser@darmarit.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants