mirror of
https://github.com/certbot/certbot.git
synced 2026-06-11 09:40:41 -04:00
acme: rm unnecessary bytes check
This commit is contained in:
parent
ba9dc2a2e2
commit
002a8f30d5
1 changed files with 2 additions and 4 deletions
|
|
@ -13,12 +13,10 @@ def is_wildcard_domain(domain: str) -> bool:
|
|||
""""Is domain a wildcard domain?
|
||||
|
||||
:param domain: domain to check
|
||||
:type domain: `bytes` or `str`
|
||||
:type domain: `str`
|
||||
|
||||
:returns: True if domain is a wildcard, otherwise, False
|
||||
:rtype: bool
|
||||
|
||||
"""
|
||||
if isinstance(domain, str):
|
||||
return domain.startswith("*.")
|
||||
return domain.startswith(b"*.")
|
||||
return domain.startswith("*.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue