[csw-devel] SF.net SVN: opencsw:[391] utilities/mirror_check.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Tue Jul 12 15:25:48 CEST 2011
Revision: 391
http://opencsw.svn.sourceforge.net/opencsw/?rev=391&view=rev
Author: wahwah
Date: 2011-07-12 13:25:48 +0000 (Tue, 12 Jul 2011)
Log Message:
-----------
mirror_check: Better docstring for RemoveHtmlComments
Modified Paths:
--------------
utilities/mirror_check.py
Modified: utilities/mirror_check.py
===================================================================
--- utilities/mirror_check.py 2011-07-12 13:25:36 UTC (rev 390)
+++ utilities/mirror_check.py 2011-07-12 13:25:48 UTC (rev 391)
@@ -61,7 +61,8 @@
def RemoveHtmlComments(self, html):
"""Removes HTML comments from the HTML code.
- It uses a lame regex and should be rewritten using a HTML parser.
+ Necessary to skip commented out URLs. It uses a lame regex and should
+ be rewritten using a HTML parser.
"""
return re.sub(r'<!--[^>]*-->', '', html)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list