Skip to content

Conversation

@jelmer
Copy link
Member

@jelmer jelmer commented Nov 7, 2025

Removed testtools.compat._b() and _u() wrapper functions throughout the codebase, replacing them with native Python 3.10+ syntax:

  • _b("string") → b"string" for byte literals
  • _b("format %s" % var) → ("format %s" % var).encode() for formatted byte strings
  • _u("string") → "string" (unicode strings are default in Python 3+)

Removed testtools.compat._b() and _u() wrapper functions throughout the codebase, replacing them with native Python 3.10+ syntax:
- _b("string") → b"string" for byte literals
- _b("format %s" % var) → ("format %s" % var).encode() for formatted byte strings
- _u("string") → "string" (unicode strings are default in Python 3+)
@jelmer jelmer enabled auto-merge November 7, 2025 15:39
@jelmer jelmer merged commit 15b0548 into master Nov 7, 2025
6 checks passed
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