's/six\.text_type/str/g'

This commit is contained in:
Brad Warren 2021-02-08 12:14:17 -08:00
parent bea4c5beb8
commit 532520ab53
2 changed files with 4 additions and 4 deletions

View file

@ -131,14 +131,14 @@ def load(_file):
def dumps(blocks):
# type: (UnspacedList) -> six.text_type
# type: (UnspacedList) -> str
"""Dump to a Unicode string.
:param UnspacedList block: The parsed tree
:rtype: six.text_type
:rtype: str
"""
return six.text_type(RawNginxDumper(blocks.spaced))
return str(RawNginxDumper(blocks.spaced))
def dump(blocks, _file):

View file

@ -579,7 +579,7 @@ def is_wildcard_domain(domain):
"""
wildcard_marker = b"*." # type: Union[Text, bytes]
if isinstance(domain, six.text_type):
if isinstance(domain, str):
wildcard_marker = u"*."
return domain.startswith(wildcard_marker)