Skip to content

Commit

Permalink
Fixed docstrings to match new functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
IanLee1521 committed Oct 24, 2017
1 parent a31a158 commit 8e43ae4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pshtt/pshtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,11 +899,11 @@ def is_hsts_preload_ready(domain):

def is_hsts_preload_pending(domain):
"""
Whether a domain is formally pending inclusion
in Chrome's HSTS preload list.
Whether a domain is formally pending inclusion in Chrome's HSTS preload
list.
If preload_pending is None, return a value of None, signaling the status as
"unknown".
If preload_pending is None, the caches have not been initialized, so do
that.
"""
if preload_pending is None:
initialize_caches()
Expand All @@ -915,8 +915,7 @@ def is_hsts_preloaded(domain):
"""
Whether a domain is contained in Chrome's HSTS preload list.
If preload_list is None, return a value of None, signaling the status as
"unknown".
If preload_list is None, the caches have not been initialized, so do that.
"""
if preload_list is None:
initialize_caches()
Expand All @@ -935,7 +934,7 @@ def parent_domain_for(hostname):
"""
For "x.y.domain.gov", return "domain.gov".
If there is no suffix_list available, simply return the hostname
If suffix_list is None, the caches have not been initialized, so do that.
"""
if suffix_list is None:
initialize_caches()
Expand Down

0 comments on commit 8e43ae4

Please sign in to comment.