Files
deb-python-pyldap/Modules
Xelnor 770611a056 Add flag to restore legacy encoding rules (See #1).
With this commit, all ldap connections accept a new parameter,
``bytes_mode``.

When set to ``True``, this flag emulates the old Python 2 behavior,
where all fields are bytes - including those declared as UTF-8 by the RFC (DN,
RDN, attribute names).

If this flag is set to ``False``, the code works with text (unicode) for all
text fields (everything except attribute values).

If no value is set under Python 2, the code will raise a BytesWarning
and proceed with the flag set to ``True``, for backwards compatibility.
Under Python 3, the value can only be set to ``False``.

For safety and ease of upgrade, the code checks that all provided
arguments are of the expected type (unicode with ``bytes_mode=False``,
bytes with ``bytes_mode=True``).
2015-07-25 18:04:38 +02:00
..
2002-06-30 21:09:47 +00:00
2015-07-15 14:04:14 +02:00
2015-07-15 14:04:14 +02:00
2009-04-17 12:19:09 +00:00
2015-07-15 14:33:02 +02:00
2015-07-15 14:33:02 +02:00
2009-04-17 12:19:09 +00:00
2009-04-17 12:19:09 +00:00
2009-04-17 12:19:09 +00:00
2015-07-15 14:05:23 +02:00
2015-07-15 14:33:02 +02:00
2009-04-17 12:19:09 +00:00
2015-07-15 14:33:02 +02:00
2009-04-17 12:19:09 +00:00
2015-07-15 14:33:02 +02:00
2009-04-17 12:19:09 +00:00
2009-04-17 12:19:09 +00:00