Skip to content

Python modernization#12

Merged
micheloosterhof merged 2 commits intomainfrom
claude/c17-c23-comparison-UEqFB
Feb 10, 2026
Merged

Python modernization#12
micheloosterhof merged 2 commits intomainfrom
claude/c17-c23-comparison-UEqFB

Conversation

@micheloosterhof
Copy link
Member

@micheloosterhof micheloosterhof commented Feb 10, 2026

Redo Python % format strings
Remove old python constructs

@micheloosterhof micheloosterhof force-pushed the claude/c17-c23-comparison-UEqFB branch from b1e6091 to 94a611a Compare February 10, 2026 12:57
…rt %-formatting to f-strings

- Replace `from typing import Pattern` with `re.Pattern` (breaks on Python 3.12+)
- Replace `from typing import TextIO` with `from io import TextIO`
- Remove redundant `(object)` base class from 5 test classes
- Convert ~280 %-format string expressions to f-strings across 46 files
- Convert .format() calls to f-strings where straightforward
- Leave logger lazy formatting (`logger.debug("msg %s", val)`) unchanged
- Leave commented-out code and SQL placeholders unchanged
@micheloosterhof micheloosterhof force-pushed the claude/c17-c23-comparison-UEqFB branch from 94a611a to 8966011 Compare February 10, 2026 13:01
@micheloosterhof micheloosterhof changed the title Add C17 vs C23 upgrade analysis for dionaea Python modernization Feb 10, 2026
GCC 14 (Debian 13/trixie) treats -Wreturn-mismatch as an error,
causing the build to fail on `return;` in a function returning bool.

https://claude.ai/code/session_01WgDVPPHs8rdi1sewh2So5z
@micheloosterhof micheloosterhof merged commit 55c3c1f into main Feb 10, 2026
11 checks passed
@micheloosterhof micheloosterhof deleted the claude/c17-c23-comparison-UEqFB branch February 10, 2026 13:45
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.

2 participants