1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

python compat: remove text_type

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
Douglas Bagnall
2020-07-04 14:27:06 +12:00
committed by Noel Power
parent ace5038031
commit f0860de5bb
19 changed files with 21 additions and 39 deletions

View File

@ -17,7 +17,7 @@ import samba.getopt as options
from samba.credentials import Credentials, DONT_USE_KERBEROS
from samba.auth import system_session
from samba.compat import get_string
from samba.compat import text_type
from ldb import SCOPE_BASE, LdbError
from ldb import ERR_NO_SUCH_OBJECT, ERR_ATTRIBUTE_OR_VALUE_EXISTS
from ldb import ERR_ENTRY_ALREADY_EXISTS, ERR_UNWILLING_TO_PERFORM
@ -1746,7 +1746,7 @@ class SamTests(samba.tests.TestCase):
username = "ldaptestuser"
password = "thatsAcomplPASS2"
utf16pw = text_type('"' + password + '"').encode('utf-16-le')
utf16pw = ('"' + password + '"').encode('utf-16-le')
ldb.add({
"dn": "cn=ldaptestuser,cn=users," + self.base_dn,