mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
python compat: remove string_types
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
committed by
Noel Power
parent
323073f4e0
commit
9cc65a552b
@ -35,7 +35,6 @@ from enum import IntEnum, unique
|
||||
import samba.auth
|
||||
import samba.dcerpc.base
|
||||
from samba.compat import text_type
|
||||
from samba.compat import string_types
|
||||
from random import randint
|
||||
from random import SystemRandom
|
||||
from contextlib import contextmanager
|
||||
@ -92,7 +91,7 @@ class TestCase(unittest.TestCase):
|
||||
def hexdump(self, src):
|
||||
N = 0
|
||||
result = ''
|
||||
is_string = isinstance(src, string_types)
|
||||
is_string = isinstance(src, str)
|
||||
while src:
|
||||
ll = src[:8]
|
||||
lr = src[8:16]
|
||||
|
Reference in New Issue
Block a user