mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
's/six\.text_type/str/g'
This commit is contained in:
parent
bea4c5beb8
commit
532520ab53
2 changed files with 4 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue