Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromecast fixups, run.sh dirty venv mode, typing, enable warnings module and fix closing file handles #1345

Merged
merged 17 commits into from
Dec 16, 2024

Conversation

C0rn3j
Copy link
Collaborator

@C0rn3j C0rn3j commented Dec 13, 2024

Fixes up one issue out of two in #1291

Had to move the Menu class so the diff is a bit wonky when viewed together.

Fixes a bunch of missed g() renames.

Enables additional (??? docs make it look like they're default) warnings like:

/home/user/Projects/Tauon/.venv/lib/python3.12/site-packages/tauon/t_modules/t_main.py:44663: 
  ResourceWarning: unclosed file 
    <_io.TextIOWrapper name='/home/user/Projects/Tauon/.venv/lib/python3.12/site-packages/tauon/theme/Turbo.ttheme' mode='r' encoding='utf-8'>
  load_theme(colours, theme_item[0])
ResourceWarning: Enable tracemalloc to get the object allocation traceback

Fixed all revealed warnings by the above, this involves not closing file handles in various places, themes and DB accesses included.
May fix memory leaks that some people complained about in #1128.

Add a way to run dirty venv to run.sh - this moves the current options up by one sans numero 1.

@C0rn3j C0rn3j changed the title Chromecast fixups and typing Chromecast fixups, run.sh dirty venv mode, typing, enable warnings module and fix closing file handles Dec 13, 2024
@Taiko2k Taiko2k merged commit 6c16ef7 into Taiko2k:master Dec 16, 2024
1 check passed
@C0rn3j C0rn3j deleted the chrome branch December 17, 2024 00:21
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