mirror of
https://github.com/samsonjs/imapbackup.git
synced 2026-03-25 08:45:53 +00:00
Merge pull request #24 from mmachicao/python3_init
removed dependency six.string_types
This commit is contained in:
commit
a9d1f9c596
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