removed dependency six.string_types

This commit is contained in:
mmachicao@m19r.de 2021-05-14 02:21:47 +02:00
parent 9f667f62b4
commit 9e10c68532

View file

@ -55,8 +55,6 @@ import socket
import re
import hashlib
from six import string_types
class SkipFolderException(Exception):
"""Indicates aborting processing of current folder, continue with next folder."""
pass
@ -123,7 +121,7 @@ def string_from_file(value):
the '@' with a '\' to treat it as a literal.
"""
assert isinstance(value, string_types)
assert isinstance(value, str)
if not value or value[0] not in ["\\", "@"]:
return value