python:samba: add a generic string_to_byte_array() helper function
commit65127d16744763d0865ca9ce4d039866785e3fc7
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Jan 2016 12:44:33 +0000 (28 13:44 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 3 Feb 2016 07:33:11 +0000 (3 08:33 +0100)
treec846f10134716b3f7a7a47b71979210dc1bbe8e6
parent943e69ca8fd4491004eafbf29ed2ca748b0b7480
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>
python/samba/__init__.py