We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fb02c0 + be8e3c6 commit b66e56dCopy full SHA for b66e56d
Lib/ldap/__init__.py
@@ -23,6 +23,13 @@
23
_trace_file = open(_trace_file, 'a')
24
atexit.register(_trace_file.close)
25
_trace_stack_limit = None
26
+else:
27
+ # Any use of the _trace attributes should be guarded by `if __debug__`,
28
+ # so they should not be needed here.
29
+ # But, providing different API for debug mode is unnecessarily fragile.
30
+ _trace_level = 0
31
+ _trace_file = sys.stderr
32
+ _trace_stack_limit = None
33
34
import _ldap
35
assert _ldap.__version__==__version__, \
0 commit comments