Skip to content

[FIX] core: inline _WHATWG_C0_CONTROL_OR_SPACE#231428

Closed
fw-bot wants to merge 1 commit intoodoo:masterfrom
odoo-dev:master-19.0-embed-unstable-private-xmo-470107-fw
Closed

[FIX] core: inline _WHATWG_C0_CONTROL_OR_SPACE#231428
fw-bot wants to merge 1 commit intoodoo:masterfrom
odoo-dev:master-19.0-embed-unstable-private-xmo-470107-fw

Conversation

@fw-bot
Copy link
Copy Markdown
Contributor

@fw-bot fw-bot commented Oct 14, 2025

This is a private variable of the stdlib, it was added in Python 3.12 (python/cpython#102508) and only backported to 3.11.4 (python/cpython#104575) and 3.10.12 (python/cpython#104592) so is not necessarily available in versions of 3.10 and 3.11 clients might be running. So embed the content into the file directly to avoid depending on the stdlib. Not to mention the concept of C0 is not exactly novel or mutable.

Also inline it in its sole use, there's no reason to have multiple string literals and a runtime concatenation.

Fixes #230990

Forward-Port-Of: #231371

This is a private variable of the stdlib, it was added in Python
3.12 (python/cpython#102508) and only backported to
3.11.4 (cpython/python#104575) and 3.10.12 (cpython/python#104592) so
is not necessarily available in versions of 3.10 and 3.11 clients
might be running. So embed the content into the file directly to avoid
depending on the stdlib. Not to mention the concept of C0 is not
exactly novel or mutable.

Also inline it in its sole use, there's no reason to have multiple
string literals and a runtime concatenation.

Fixes odoo#230990

X-original-commit: 0374281
@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Oct 14, 2025

Pull request status dashboard

@fw-bot
Copy link
Copy Markdown
Contributor Author

fw-bot commented Oct 14, 2025

@xmo-odoo this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Oct 14, 2025
@xmo-odoo
Copy link
Copy Markdown
Collaborator

@robodoo r+

robodoo pushed a commit that referenced this pull request Oct 14, 2025
This is a private variable of the stdlib, it was added in Python 3.12 (python/cpython#102508) and only backported to 3.11.4 (python/cpython#104575) and 3.10.12 (python/cpython#104592) so is not necessarily available in versions of 3.10 and 3.11 clients might be running. So embed the content into the file directly to avoid depending on the stdlib. Not to mention the concept of C0 is not exactly novel or mutable.

Also inline it in its sole use, there's no reason to have multiple string literals and a runtime concatenation.

Fixes #230990

closes #231428

Forward-port-of: #231371
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
@robodoo robodoo added the 19.1 label Oct 14, 2025
@robodoo robodoo closed this Oct 14, 2025
@fw-bot fw-bot deleted the master-19.0-embed-unstable-private-xmo-470107-fw branch October 21, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

19.1 forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants