Skip to content

Conversation

@spaceone
Copy link
Contributor

requestName is already set at class member. It seems there is code out there which is not giving it as value but passing None. in that case, fallback to the class member.

Fixes: 414ae1d

requestName is already set at class member. It seems there is code out
there which is not giving it as value but passing None.
in that case, fallback to the class member.

Fixes: 414ae1d
Copy link
Contributor

@droideck droideck left a comment

Choose a reason for hiding this comment

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

Looks good!

One note though, if someone explicitly passes requestName="", it will fallback to the class default. This is likely desired behavior, but worth noting.

We might make it more explicit:

if requestName is None: requestName = self.requestName 

But requestTtl already follows or patterns and I don't think any body would use it with "".

@droideck droideck merged commit 0506a0f into python-ldap:main Oct 29, 2025
16 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