meld r1236 - trunk/vc



Author: vincele
Date: Mon Mar  9 08:58:02 2009
New Revision: 1236
URL: http://svn.gnome.org/viewvc/meld?rev=1236&view=rev

Log:
Replace generator expression with list comprehension
for the sake of python 2.3 compatibility


Modified:
   trunk/vc/_vc.py

Modified: trunk/vc/_vc.py
==============================================================================
--- trunk/vc/_vc.py	(original)
+++ trunk/vc/_vc.py	Mon Mar  9 08:58:02 2009
@@ -33,7 +33,7 @@
 STATE_MODIFIED, STATE_CONFLICT, STATE_REMOVED, \
 STATE_MISSING, STATE_MAX = range(12)
 
-CAPABILITY_RESOLVE, CAPABILITY_OTHER = (1<<i for i in range(2))
+CAPABILITY_RESOLVE, CAPABILITY_OTHER = [1<<i for i in range(2)]
 
 class Entry(object):
     # These are the possible states of files. Be sure to get the colons correct.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]