python:samba: add a generic string_to_byte_array() helper function
commitffd18e18d6b2e88399784754aa2eb33b0e82fe45
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:34 +0000 (5 10:03 +0100)
tree1b21111e49952a20c489ca16f20991d010fbb6f9
parentb4225105debb1915771b545e4cf783bda9985f85
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