mirror of
https://github.com/samsonjs/imapbackup.git
synced 2026-04-27 14:57:44 +00:00
removed dependency six.string_types
This commit is contained in:
parent
9f667f62b4
commit
9e10c68532
1 changed files with 1 additions and 3 deletions
|
|
@ -55,8 +55,6 @@ import socket
|
||||||
import re
|
import re
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
from six import string_types
|
|
||||||
|
|
||||||
class SkipFolderException(Exception):
|
class SkipFolderException(Exception):
|
||||||
"""Indicates aborting processing of current folder, continue with next folder."""
|
"""Indicates aborting processing of current folder, continue with next folder."""
|
||||||
pass
|
pass
|
||||||
|
|
@ -123,7 +121,7 @@ def string_from_file(value):
|
||||||
the '@' with a '\' to treat it as a literal.
|
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 ["\\", "@"]:
|
if not value or value[0] not in ["\\", "@"]:
|
||||||
return value
|
return value
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue