Permalink
Browse files

Add a comment for future development

git-svn-id: svn://cherokee-project.com/cherokee/trunk@6312 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent 4bf9dea commit ddecc45b0ba6d2dcde65296b120eeffac00b2aa6 taher committed Feb 16, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 doc/test_links.py
View
@@ -21,6 +21,7 @@ def get_link_refs():
return link_refs.keys()
def get_txt_refs (link_refs):
+ """Discard external links, and return the reference to the source .txt of a link"""
def is_txt (x):
if not ('://' in x or x.startswith('mailto:')):
return True
@@ -32,7 +33,6 @@ def check_links():
error = False
refs = get_link_refs()
- link_refs = [x for x in refs if x.startswith('http')]
txt_refs = get_txt_refs (refs)
txt_files = filter(lambda x: x.endswith('.txt'), os.listdir('.'))
@@ -52,7 +52,8 @@ def check_links():
print "ERROR: %s isn't covered in Makefile.am " %(txt)
error = True
- # TODO: check if link_refs are still accessible.
+ # TODO: check if external links are still accessible
+ # http_refs = [x for x in refs if x.startswith('http')]
return error

0 comments on commit ddecc45

Please sign in to comment.