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

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


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

    Modify test_output.py : Do not compute diff for timestamps

diff --git a/webtools_py3/test_output.py b/webtools_py3/test_output.py
index f778817..9ddbb06 100755
--- a/webtools_py3/test_output.py
+++ b/webtools_py3/test_output.py
@@ -23,6 +23,9 @@ class BlendsHTMLParser(HTMLParser):
 
     def handle_starttag(self, tag, attrs):
         global s
+        # self.flag = 1, for the timestamp
+        if tag == 'address':
+            self.flag = 1
         self.tmp = self.tmp + " <start_tag> : %s" %tag.strip()
         for attr in attrs:
             # self.flag = 1, for entire class publshed
@@ -36,6 +39,7 @@ class BlendsHTMLParser(HTMLParser):
         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
+        # for class 'published' and for timestamp
         if self.flag == 0:
             self.data.append(self.tmp)
         elif self.flag == 1:

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list