[meld] Remove namedtuple module, as it's no longer required in Python 2.6



commit 76c6b1dca69d14fb3a1b7afe88173b702c53b1ef
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Mon Jun 11 17:38:12 2012 +1000

    Remove namedtuple module, as it's no longer required in Python 2.6

 meld/dirdiff.py         |    4 +-
 meld/util/namedtuple.py |  151 -----------------------------------------------
 2 files changed, 1 insertions(+), 154 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index b044c1f..f001ae1 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -35,7 +35,7 @@ import time
 
 import ui.emblemcellrenderer
 
-from util.namedtuple import namedtuple
+from collections import namedtuple
 from meldapp import app
 
 gdk = gtk.gdk
@@ -46,8 +46,6 @@ gdk = gtk.gdk
 #
 ################################################################################
 
-# For compatibility with Python 2.5, we use the Python 2.4 compatible version of
-# namedtuple. The class is included in the collections module as of Python 2.6.
 class StatItem(namedtuple('StatItem', 'mode size time')):
     __slots__ = ()
 



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