[meld] Explicit tuple in iteration
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Explicit tuple in iteration
- Date: Fri, 30 Nov 2012 19:29:01 +0000 (UTC)
commit 73d569cd7354b221b54c5a54121f8ea3ec563818
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Oct 27 07:35:16 2012 +1000
Explicit tuple in iteration
meld/ui/emblemcellrenderer.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/ui/emblemcellrenderer.py b/meld/ui/emblemcellrenderer.py
index 5f6e273..3cc5cfe 100644
--- a/meld/ui/emblemcellrenderer.py
+++ b/meld/ui/emblemcellrenderer.py
@@ -98,7 +98,7 @@ class EmblemCellRenderer(gtk.GenericCellRenderer):
# adjust the base colours accordingly
luma = (r + r + b + g + g + g) / 6.
extra_luma = (1.2 - luma) / 3.
- r, g, b = [min(x + extra_luma, 1.) for x in r, g, b]
+ r, g, b = [min(x + extra_luma, 1.) for x in (r, g, b)]
context.set_source_rgba(r, g, b, 0.4)
context.set_operator(cairo.OPERATOR_ATOP)
context.paint()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]