1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

python/samba/netcmd: PY3 port samba.tests.samba_tool.edit

Need to write bytes to file

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Noel Power 2018-10-10 19:19:24 +01:00 committed by Andrew Bartlett
parent a25367685d
commit fdb3aa487f

View File

@ -2421,7 +2421,7 @@ LDAP server using the 'nano' editor.
editor = 'vi'
with tempfile.NamedTemporaryFile(suffix=".tmp") as t_file:
t_file.write(result_ldif)
t_file.write(get_bytes(result_ldif))
t_file.flush()
try:
check_call([editor, t_file.name])