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

Akshita Jha akshita-guest at users.alioth.debian.org
Thu Aug 6 20:44:02 UTC 2015


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

    Modify test_output.py : Ignore some fake diffs in the tasks files

diff --git a/webtools_py3/test_output.py b/webtools_py3/test_output.py
index 1ae0c87..5b8630f 100755
--- a/webtools_py3/test_output.py
+++ b/webtools_py3/test_output.py
@@ -47,7 +47,12 @@ class BlendsHTMLParser(HTMLParser):
         self.tmp = ''
 
     def handle_data(self, data):
-        self.tmp = self.tmp + " <data> : %s" %data.strip()
+        data = data.strip()
+        # workaround to ignore fake diffs in the end like: 
+        # українська (ukrajins'ka), украї нська (ukrajins'ka)
+        if data != '' and data[-1] == ')':
+            data = ''.join(data.split())
+        self.tmp = self.tmp + " <data> : %s" %data
 
     def handle_comment(self, data):
         self.tmp = self.tmp + " <comment> : %s" %data.strip()

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list