python:samba: add a generic string_to_byte_array() helper function
commit04b2073eeba3553682890e5849bacc05fc213405
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Jan 2016 12:44:33 +0000 (28 13:44 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 5 Feb 2016 09:03:18 +0000 (5 10:03 +0100)
tree610addb01cec4659bab11b0d34e715885f330e12
parentfe875f39dc5a536fb88bae0a1b199484d2f45e6f
python:samba: add a generic string_to_byte_array() helper function

We should avoid implementing this again and again.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11699

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit 65127d16744763d0865ca9ce4d039866785e3fc7)
python/samba/__init__.py