[Blends-commit] [SCM] website branch, master, updated. 231677f792b62d67e79f08b027665a00ee82ef17

Akshita Jha akshita-guest at users.alioth.debian.org
Thu Aug 6 10:51:17 UTC 2015


The following commit has been merged in the master branch:
commit 9eacc9c899db14030f9133cd79c085dc0ba6954a
Author: Akshita Jha <akshita-guest at users.alioth.debian.org>
Date:   Thu Aug 6 13:53:52 2015 +0530

    Modify test_output.py : Remove unwanted comments

diff --git a/webtools_py3/test_output.py b/webtools_py3/test_output.py
index b166d0b..f778817 100755
--- a/webtools_py3/test_output.py
+++ b/webtools_py3/test_output.py
@@ -23,10 +23,8 @@ class BlendsHTMLParser(HTMLParser):
 
     def handle_starttag(self, tag, attrs):
         global s
-        #self.tmp.append("start_tag : %s" %tag.strip())
         self.tmp = self.tmp + " <start_tag> : %s" %tag.strip()
         for attr in attrs:
-            #self.tmp.append("attr : %s" %str(attr).strip())
             # self.flag = 1, for entire class publshed
             if s == 1:
                 if attr[1] == 'published' or attr[1] == 'journal' or attr[1] == 'year':
@@ -35,7 +33,6 @@ class BlendsHTMLParser(HTMLParser):
             self.tmp = self.tmp + " <attr> : %s" %str(attr).strip()
 
     def handle_endtag(self, tag):
-        #self.tmp.append("end_tag : %s" %tag.strip())
         self.tmp = self.tmp + " <end_tag> : %s" %tag.strip()
         # if self.flag == 1, do not append to list
         # hence diff for this will not be calculated
@@ -46,15 +43,12 @@ class BlendsHTMLParser(HTMLParser):
         self.tmp = ''
 
     def handle_data(self, data):
-        #self.tmp.append("data : %s" %data.strip())
         self.tmp = self.tmp + " <data> : %s" %data.strip()
 
     def handle_comment(self, data):
-        #self.tmp.append("comment : %s" %data.strip())
         self.tmp = self.tmp + " <comment> : %s" %data.strip()
 
     def handle_decl(self, data):
-        #self.tmp.append("decl : %s" %data.strip())
         self.tmp = self.tmp + " <decl> : %s" %data.strip()
 
 

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list