python compat: remove text_type
[samba.git] / source4 / dsdb / tests / python / sort.py
index a85957f697d9807e2ae52ac1a1c52921bdf04920..7b929eaefb66267293473ab63bf7cbd0401e48af 100644 (file)
@@ -16,7 +16,6 @@ import samba
 from samba.tests.subunitrun import SubunitOptions, TestProgram
 from samba.compat import cmp_fn
 from samba.compat import cmp_to_key_fn
-from samba.compat import text_type
 import samba.getopt as options
 
 from samba.auth import system_session
@@ -57,7 +56,7 @@ creds = credopts.get_credentials(lp)
 
 
 def norm(x):
-    if not isinstance(x, text_type):
+    if not isinstance(x, str):
         x = x.decode('utf8')
     return normalize('NFKC', x).upper()