pull/7716/head
Chao Wang 2018-03-12 23:48:13 +08:00 committed by k8s-ci-robot
parent 1800318cec
commit 3f9def6370
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ def find_documents_to_rewrite():
rewrites = []
for doc in moved_docs:
location = doc_location(doc)
destinations = get_desinations_for_doc(doc)
destinations = get_destinations_for_doc(doc)
if len(destinations) == 0:
print("Unable to get possible destinations for %s" % doc)
@ -35,7 +35,7 @@ def doc_location(filename):
REDIRECT_REGEX = re.compile("^.*\[(.*)\]\((.*)\)$")
def get_desinations_for_doc(filename):
def get_destinations_for_doc(filename):
destination_paths = []
with open(filename) as f:
lines = [line.rstrip('\n').rstrip('\r') for line in f.readlines()]