File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,11 @@ Unspecified: relaxed mode with warnings
66
66
67
67
Text values returned from python-ldap are always ``unicode ``.
68
68
Text values supplied to python-ldap should be ``unicode ``;
69
- warnings of type :class: `ldap.LDAPBytesWarning ` are emitted when they
70
- are not. :class: `ldap.LDAPBytesWarning ` is a subclass of
71
- :class: `BytesWarning `.
69
+ warnings are emitted when they are not.
70
+
71
+ The warnings are of type :class: `~ldap.LDAPBytesWarning `, which
72
+ is a subclass of :class: `BytesWarning ` designed to be easily
73
+ :ref: `filtered out <filter-bytes-warning >` if needed.
72
74
73
75
Backwards-compatible behavior is not scheduled for removal until Python 2
74
76
itself reaches end of life.
@@ -107,8 +109,10 @@ Note that only the result's *values* are of the ``bytes`` type:
107
109
]
108
110
109
111
110
- Filter warning
111
- --------------
112
+ .. _filter-bytes-warning :
113
+
114
+ Filtering warnings
115
+ ------------------
112
116
113
117
The bytes mode warnings can be filtered out and ignored with a
114
118
simple filter.
Original file line number Diff line number Diff line change @@ -564,6 +564,18 @@ The above exceptions are raised when a result code from an underlying API
564
564
call does not indicate success.
565
565
566
566
567
+ Warnings
568
+ ========
569
+
570
+ .. py :class :: LDAPBytesWarning
571
+
572
+ Raised when bytes/text mismatch in non-strict bytes mode.
573
+
574
+ See :ref: `bytes_mode ` for details.
575
+
576
+ .. versionadded :: 3.0.0
577
+
578
+
567
579
.. _ldap-objects :
568
580
569
581
LDAPObject classes
You can’t perform that action at this time.
0 commit comments