Skip to content

Fix datetime.UTC import breaking Python 3.10#1677

Merged
abrignoni merged 1 commit into
mainfrom
fix-py310-datetime-utc
Jul 8, 2026
Merged

Fix datetime.UTC import breaking Python 3.10#1677
abrignoni merged 1 commit into
mainfrom
fix-py310-datetime-utc

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Fixes #1676.

datetime.UTC is 3.11+, so the explicit import in ilapfuncs.py crashed 3.10 at startup (regression from the import * → explicit change in 721f9cf). Switched the one use to timezone.utc — same value, already used elsewhere in the file.

Tested on 3.10 and 3.14: identical output, all 598 plugins load.

datetime.UTC is 3.11+; use timezone.utc instead (same value, already
used elsewhere in ilapfuncs). Fixes #1676.
@abrignoni abrignoni merged commit 9d3815e into main Jul 8, 2026
1 check passed
@abrignoni abrignoni deleted the fix-py310-datetime-utc branch July 8, 2026 10:05
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.

Error script broken since commit 721f9cfc31a9b64bc2c07d9f0f76a7ead80783b5 on Python 3.10.3

1 participant