fix docstring quote style

This commit is contained in:
Jeremy McMillan 2019-01-11 09:25:13 -06:00 committed by Pedro Algarvio
parent 71c357414d
commit 475404d14b

View file

@ -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])