Skip to content

[FIX] core: inline _WHATWG_C0_CONTROL_OR_SPACE#231371

Closed
xmo-odoo wants to merge 1 commit intoodoo:19.0from
odoo-dev:19.0-embed-unstable-private-xmo
Closed

[FIX] core: inline _WHATWG_C0_CONTROL_OR_SPACE#231371
xmo-odoo wants to merge 1 commit intoodoo:19.0from
odoo-dev:19.0-embed-unstable-private-xmo

Conversation

@xmo-odoo
Copy link
Copy Markdown
Collaborator

@xmo-odoo xmo-odoo 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

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
@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Oct 14, 2025

Pull request status dashboard

@xmo-odoo
Copy link
Copy Markdown
Collaborator Author

@robodoo squash r+

@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Oct 14, 2025

Merge method set to squash.

@C3POdoo C3POdoo requested review from a team, HydrionBurst and kmagusiak and removed request for a team October 14, 2025 07:13
@robodoo robodoo closed this in 0374281 Oct 14, 2025
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>
@fw-bot fw-bot deleted the 19.0-embed-unstable-private-xmo branch October 21, 2025 10:55
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.

[19.0] ImportError in urls.py: _WHATWG_C0_CONTROL_OR_SPACE missing in Python 3.10.11 (Odoo 19)

2 participants