Skip to content

Fix punktum app module: UTF-8 encoding and stray dot in import#7

Open
serrebidev wants to merge 1 commit into
josephsl:mainfrom
serrebidev:fix-punktum-encoding-import
Open

Fix punktum app module: UTF-8 encoding and stray dot in import#7
serrebidev wants to merge 1 commit into
josephsl:mainfrom
serrebidev:fix-punktum-encoding-import

Conversation

@serrebidev

Copy link
Copy Markdown

@

Summary

The new addon/appModules/punktum.py currently cannot load at all, for two independent reasons:

  1. The file is encoded as ISO-8859-1. Python 3 source must be UTF-8 (absent a coding declaration), so the umlauts in the header comment (Unterstützung für "Punktum") make the module fail to decode with a SyntaxError: (unicode error) before any code runs.
  2. Line 3 reads import appModuleHandler. — the trailing dot is a SyntaxError by itself.

This PR re-encodes the file as UTF-8 and removes the stray dot. No functional changes.

Validation

python -m py_compile addon/appModules/punktum.py fails on main and passes with this change (Python 3.13, matching NVDA 2026.x). Also running the fixed module in my installed NVDA copy.

🤖 Generated with Claude Code
@

punktum.py was committed as ISO-8859-1, so Python 3 (which requires
UTF-8 source by default) fails to decode the umlauts in the header
comment and the whole app module refuses to load. The import statement
also had a stray trailing dot (import appModuleHandler.), which is a
SyntaxError on its own.

Re-encode the file as UTF-8 and drop the trailing dot; no functional
changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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