GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-31844: Remove _markupbase.ParserBase.error() by berkerpeksag · Pull Request #8562 · python/cpython

Conversation

@berkerpeksag

@berkerpeksag berkerpeksag commented Jul 30, 2018 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

https://bugs.python.org/issue31844

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ezio-melotti reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@berkerpeksag
berkerpeksag requested a review from ezio-melotti July 30, 2018 09:51
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Jul 30, 2018
@bedevere-bot bedevere-bot added the awaiting merge label Jul 30, 2018
@berkerpeksag berkerpeksag closed this Aug 23, 2018
@berkerpeksag berkerpeksag reopened this Jan 6, 2020
ezio-melotti
ezio-melotti requested changes Jan 7, 2020
View reviewed changes

@ezio-melotti ezio-melotti left a comment

Copy link
Copy Markdown
Member

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.

All reactions
@bedevere-bot bedevere-bot removed the awaiting merge label Jan 7, 2020
@bedevere-bot

bedevere-bot commented Jan 7, 2020

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot added the awaiting changes label Jan 7, 2020
@csabella csabella mentioned this pull request Jan 12, 2020
bpo-34480: fix bug where match variable is used prior to being defined #17643
Closed
@berkerpeksag
bpo-31844: Remove _markupbase.ParserBase.error()
2b4ac00
@berkerpeksag
berkerpeksag force-pushed the 31844-remove-error branch from bf561c3 to 2b4ac00 Compare February 24, 2020 00:47
@berkerpeksag

berkerpeksag commented Feb 24, 2020

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot removed the awaiting changes label Feb 24, 2020
@bedevere-bot

bedevere-bot commented Feb 24, 2020

Copy link
Copy Markdown

Thanks for making the requested changes!

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot added the awaiting change review label Feb 24, 2020
@bedevere-bot
bedevere-bot requested a review from ezio-melotti February 24, 2020 00:54
@csabella
csabella requested review from ezio-melotti and removed request for ezio-melotti June 14, 2020 12:01
ezio-melotti
ezio-melotti approved these changes Jul 16, 2020
View reviewed changes

@ezio-melotti ezio-melotti left a comment

Copy link
Copy Markdown
Member

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.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting change review labels Jul 16, 2020
@berkerpeksag
Merge branch 'master' into 31844-remove-error
9747749
@berkerpeksag
berkerpeksag merged commit e34bbfd into python:master Jul 16, 2020
@bedevere-bot bedevere-bot removed the awaiting merge label Jul 16, 2020
@berkerpeksag
berkerpeksag deleted the 31844-remove-error branch July 16, 2020 06:13
@bedevere-bot

bedevere-bot commented Jul 16, 2020

Copy link
Copy Markdown

⚠️⚠️⚠️ 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
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot

bedevere-bot commented Jul 16, 2020

Copy link
Copy Markdown

⚠️⚠️⚠️ 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
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 4, 2020
@berkerpeksag @shihai1991
bpo-31844: Remove _markupbase.ParserBase.error() (pythonGH-8562)
5303bf8
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
@berkerpeksag @shihai1991
bpo-31844: Remove _markupbase.ParserBase.error() (pythonGH-8562)
c3ac6f3
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
@berkerpeksag @xzy3-cdc
bpo-31844: Remove _markupbase.ParserBase.error() (pythonGH-8562)
99b9160
@mareksuscak mareksuscak mentioned this pull request Apr 2, 2022
[3.9] bpo-34480: fix bug where match variable is used prior to being defined (GH-17643) #32256
Merged
@kodial kodial mannequin mentioned this pull request Sep 9, 2022
_markupbase.py fails with UnboundLocalError on invalid keyword in marked section #78661
Closed
nmlorg added a commit to nmlorg/metabot that referenced this pull request Jul 8, 2023
@nmlorg
_markupbase.ParserBase.error was required to be defined in subclasses…
50ec089
… 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 return42 mentioned this pull request Oct 18, 2023
Google: Searching "regex exclude" redirects to homepage with an error searxng/searxng#2943
Closed
return42 added a commit to return42/searxng that referenced this pull request Oct 18, 2023
@return42
[fix] HTMLParser: undocumented not implemented method
01cfc55
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]>
@return42 return42 mentioned this pull request Oct 18, 2023
[fix] HTMLParser: undocumented not implemented method searxng/searxng#2944
Merged
return42 added a commit to return42/searxng that referenced this pull request Oct 19, 2023
@return42
[fix] HTMLParser: undocumented not implemented method
8903910
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]>
dalf pushed a commit to searxng/searxng that referenced this pull request Oct 22, 2023
@return42 @dalf
[fix] HTMLParser: undocumented not implemented method
ef56e1d
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]>
@srittau srittau mannequin mentioned this pull request Apr 10, 2022
HTMLParser: undocumented not implemented method #76025
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ezio-melotti ezio-melotti ezio-melotti approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

4 participants

@berkerpeksag @bedevere-bot @ezio-melotti @the-knights-who-say-ni
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.