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

Ole Streicher olebole at debian.org
Sun Jan 10 19:46:55 UTC 2016


The following commit has been merged in the master branch:
commit 5ad10b956b2239cbf6f7375a49c90ac8dd3108c4
Author: Ole Streicher <olebole at debian.org>
Date:   Sun Jan 10 20:46:52 2016 +0100

    Leftover dict.has_key(x) --> x in dict

diff --git a/webtools_py3/templates/tasks_idx.xhtml b/webtools_py3/templates/tasks_idx.xhtml
index 5f85b54..5c63e98 100644
--- a/webtools_py3/templates/tasks_idx.xhtml
+++ b/webtools_py3/templates/tasks_idx.xhtml
@@ -81,7 +81,7 @@ table {
 	      </td>
 	      <td>
 		<span py:choose="">
-	          <span py:when="tasks[task].metapkg.desc.has_key(lang)">
+	          <span py:when="lang in tasks[task].metapkg.desc">
 		    ${tasks[task].metapkg.desc[lang]['short']}
 		  </span>
 	          <span py:otherwise="">

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list