Skip to content

perf: defer configparser import in theme.py to Theme.from_file()#7

Closed
KRRT7 wants to merge 1 commit intomasterfrom
perf/defer-configparser-theme
Closed

perf: defer configparser import in theme.py to Theme.from_file()#7
KRRT7 wants to merge 1 commit intomasterfrom
perf/defer-configparser-theme

Conversation

@KRRT7
Copy link
Copy Markdown
Owner

@KRRT7 KRRT7 commented Apr 9, 2026

Summary

Move import configparser from module level to inside Theme.from_file(). configparser is only needed when loading themes from .ini files, not during normal Console/Theme construction.

Testing

952 passed on CPython 3.9–3.14 and PyPy 3.10.

Move `import configparser` from module level to inside from_file().
configparser is only needed when loading themes from .ini files,
not during normal Console/Theme construction.
@KRRT7
Copy link
Copy Markdown
Owner Author

KRRT7 commented Apr 9, 2026

Superseded by the consolidated stacked PRs #12 + #13.

@KRRT7 KRRT7 closed this Apr 9, 2026
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.

1 participant