Skip to content

UPN bind example: docstrings + light modernization (fixes #161) - #261

Merged
psi29a merged 3 commits into
masterfrom
fixes/upn-bind-example-dedup
Sep 3, 2026
Merged

psi29a merged 3 commits into
masterfrom
fixes/upn-bind-example-dedup

Conversation

@psi29a

@psi29a psi29a commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Supersedes #161. Rebased graingert's two commits onto current master,
and added a follow-up commit that applies the review comments left by
adiroiban on the original PR (docstring on the UPN helper, comment
wording on the two fall-through branches).

graingert and others added 3 commits August 26, 2026 10:47
Applies the review comments left on #161 (adiroiban) by extracting
the UPN resolution into a well-documented ``_resolveUPNBindDN`` helper,
explaining the ``@`` vs ``,`` shape check that identifies a UPN, and
naming the two fall-through cases (not-a-UPN, no-unambiguous-match).

Also drops a couple of Python 2 leftovers now that we require 3.10+:
the explicit ``object`` base and ``super(Cls, self)``. Behaviour is
unchanged; this is a docs-only example file, still exercised only by
being importable.

Co-authored-with: Thomas Grainger <tagrain@gmail.com>
@psi29a
psi29a requested a review from adiroiban August 26, 2026 09:00

@adiroiban adiroiban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. Sorry for the delay. I just wanted to let you know that the coderabbit.ai GitHub app request was rejected.

Unfortunately, LLM tools are not welcomed in the Twisted Org repos.

See https://docs.twisted.org/en/latest/development/ai-policy.html


I have checked the changes an they look good.

Thanks!

@psi29a
psi29a merged commit c3eaca5 into master Sep 3, 2026
6 checks passed
@psi29a
psi29a deleted the fixes/upn-bind-example-dedup branch September 3, 2026 07:35
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.

3 participants