diff options
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r-- | pykolab/utils.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py index 8bc82e5..9794a57 100644 --- a/pykolab/utils.py +++ b/pykolab/utils.py @@ -364,7 +364,12 @@ def normalize(_object): if _object[key] is None: continue - val = map(_strip, _object[key]) + # Dont run strip anything from attributes which + # hold byte strings + if key.lower() in constants.BINARY_ATTRS: + val = _object[key] + else: + val = map(_strip, _object[key]) if len(val) == 1: result[key.lower()] = ''.join(val) |