Commit 9f8ccf5c authored by Frede Hundewadt's avatar Frede Hundewadt

fix doc strings for extra functions

parent d6c00c7e
...@@ -102,7 +102,7 @@ def mirror_protocols(mirror): ...@@ -102,7 +102,7 @@ def mirror_protocols(mirror):
""" """
Return a number of copies of mirror - one copy per protocol Return a number of copies of mirror - one copy per protocol
:param: mirror dictionary with a number of protocols :param: mirror dictionary with a number of protocols
:return: dictionaries as a copy of the mirror for probing - one per protocol :return: list of mirror dictionaries with one protocol per dictionary
""" """
result = [] result = []
for idx, protocol in enumerate(mirror["protocols"]): for idx, protocol in enumerate(mirror["protocols"]):
...@@ -121,8 +121,8 @@ def mirror_protocols(mirror): ...@@ -121,8 +121,8 @@ def mirror_protocols(mirror):
def filter_bad_ssl(work): def filter_bad_ssl(work):
""" """
filter bad ssl if mirror has more than one protocol filter bad ssl if mirror has more than one protocol
:param work: :param work: list of mirror dictionaries with one protocol per dictionary
:return: mirror :return: mirror dictionary with invalid ssl removed
""" """
result = { result = {
"branches": work[0]["branches"], "branches": work[0]["branches"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment