mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix docstring quote style
This commit is contained in:
parent
71c357414d
commit
475404d14b
1 changed files with 2 additions and 2 deletions
|
@ -56,10 +56,10 @@ except (ImportError, OSError, AttributeError, TypeError):
|
|||
|
||||
|
||||
def sanitize_host(host):
|
||||
"""
|
||||
'''
|
||||
Sanitize host string.
|
||||
https://tools.ietf.org/html/rfc1123#section-2.1
|
||||
"""
|
||||
'''
|
||||
RFC952_characters = ascii_letters + digits + ".-"
|
||||
return "".join([c for c in host[0:255] if c in RFC952_characters])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue