Skip to content

Lib/ldap: Provide _trace_level and _trace_file in non-debug mode #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2019

Conversation

encukou
Copy link
Member

@encukou encukou commented Jul 30, 2018

All use of these attributes should be guarded by if __debug__.
However, that's not always the case. Providing different API based
on __debug__ is unnecessarily fragile.

This is intended as a quick fix for a maintenance release (3.1.1). More coming up in another PR.

Fixes: #226

@encukou encukou requested a review from tiran July 30, 2018 17:20
All use of these attributes *should* be guarded by `if __debug__`.
However, that's not always the case. Providing different API based
on __debug__ is unnecessarily fragile.

This is intended as a quick fix for a maintenance release.

Fixes: python-ldap#226
@encukou
Copy link
Member Author

encukou commented Jan 30, 2019

@tiran, could you have a quick look here?

Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@tiran tiran merged commit b66e56d into python-ldap:master Mar 8, 2019
@Tardo Tardo mentioned this pull request Jun 21, 2022
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.

AttributeError: 'module' object has no attribute '_trace_level'
2 participants