Skip to content

Remove Python 2 leftovers#198

Merged
lavr merged 2 commits intomasterfrom
fix/remove-python2-leftovers
Mar 31, 2026
Merged

Remove Python 2 leftovers#198
lavr merged 2 commits intomasterfrom
fix/remove-python2-leftovers

Conversation

@lavr
Copy link
Copy Markdown
Owner

@lavr lavr commented Mar 31, 2026

Summary

  • Fix unicode() call in scripts/make_rfc822.py (NameError on Python 3)
  • Remove dead xfail test that used unicode() builtin
  • Remove six from test dependencies (no imports anywhere)
  • Remove # coding: utf-8 / # encoding: utf-8 from all 44 Python files
  • Remove shebang lines from setup.py and scripts/make_rfc822.py
  • Remove u'...' string prefixes from tests and docs

Test plan

  • 81 tests pass
  • mypy passes
  • CI passes

lavr added 2 commits March 31, 2026 19:07
- Fix unicode() call in scripts/make_rfc822.py (was broken on Py3)
- Remove dead xfail test with unicode() call
- Remove six from test dependencies (unused)
- Remove # coding: utf-8 / # encoding: utf-8 from all files
- Remove #!/usr/bin/env python from setup.py and scripts
- Remove u'...' string prefixes from tests and docs
- Restore shebang in scripts/make_rfc822.py (as python3)
- Fix 'gu' → 'g' in theme support comment (sed collateral)
- Fix "you're" → "yo're" in docs/conf_base.py (sed collateral)
@lavr lavr merged commit 662cbc8 into master Mar 31, 2026
7 checks passed
@lavr lavr deleted the fix/remove-python2-leftovers branch April 2, 2026 17:38
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