changeset 459:36f27d1e64b2

browser_side: avoid warning "list comprehension redefines 'group' from line XXX"
author souliane <souliane@mailoo.org>
date Thu, 29 May 2014 17:53:53 +0200
parents 1eeed8028199
children d0cd8ae579f7
files src/browser/contact.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/contact.py	Thu May 29 17:49:59 2014 +0200
+++ b/src/browser/contact.py	Thu May 29 17:53:53 2014 +0200
@@ -112,7 +112,7 @@
         _item.addMouseListener(self._parent)
         DOM.setStyleAttribute(_item.getElement(), "cursor", "pointer")
         index = 0
-        for group_ in [group.group for group in self.getChildren()]:
+        for group_ in [child.group for child in self.getChildren()]:
             if group_ > group:
                 break
             index += 1