Merge pull request #24 from mmachicao/python3_init

removed dependency six.string_types
This commit is contained in:
Rui Carmo 2021-05-14 07:43:43 +01:00 committed by GitHub
commit a9d1f9c596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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