[Python-modules-commits] r14720 - in packages/python-enable/trunk/debian (2 files)
varun at users.alioth.debian.org
varun at users.alioth.debian.org
Thu Oct 21 22:40:47 UTC 2010
Date: Thursday, October 21, 2010 @ 22:40:46
Author: varun
Revision: 14720
Modify patches/sike.diff - import 'with' keyword to enable
compilation with python2.5, thanks to Piotr
Modified:
packages/python-enable/trunk/debian/changelog
packages/python-enable/trunk/debian/patches/sike.diff
Modified: packages/python-enable/trunk/debian/changelog
===================================================================
--- packages/python-enable/trunk/debian/changelog 2010-10-21 21:44:24 UTC (rev 14719)
+++ packages/python-enable/trunk/debian/changelog 2010-10-21 22:40:46 UTC (rev 14720)
@@ -1,3 +1,10 @@
+python-enable (3.3.2-2) experimental; urgency=low
+
+ * Modify patches/sike.diff - import 'with' keyword to enable
+ compilation with python2.5, thanks to Piotr
+
+ -- Varun Hiremath <varun at debian.org> Thu, 21 Oct 2010 18:07:36 -0400
+
python-enable (3.3.2-1) experimental; urgency=low
* New upstream release
Modified: packages/python-enable/trunk/debian/patches/sike.diff
===================================================================
--- packages/python-enable/trunk/debian/patches/sike.diff 2010-10-21 21:44:24 UTC (rev 14719)
+++ packages/python-enable/trunk/debian/patches/sike.diff 2010-10-21 22:40:46 UTC (rev 14720)
@@ -1,18 +1,20 @@
-Authon: Varun Hiremath <varun at debian.org>
-Date: Sun, 17 Oct 2010 23:11:05 -0400
-Description: Do not use the keyword with
Index: python-enable-3.3.2/enthought/savage/compliance/sike.py
===================================================================
---- python-enable-3.3.2.orig/enthought/savage/compliance/sike.py 2010-10-17 23:09:28.000000000 -0400
-+++ python-enable-3.3.2/enthought/savage/compliance/sike.py 2010-10-17 23:09:53.000000000 -0400
-@@ -339,8 +339,8 @@
+--- python-enable-3.3.2.orig/enthought/savage/compliance/sike.py 2010-10-13 17:49:01.000000000 -0400
++++ python-enable-3.3.2/enthought/savage/compliance/sike.py 2010-10-21 18:15:32.000000000 -0400
+@@ -1,5 +1,7 @@
+ #!/usr/bin/env python
+ # -*- coding: UTF-8 -*-
++# import with keyword
++from __future__ import with_statement
- filename, line, name = new.file_line_name
- if os.path.exists(filename):
-- with open(filename, 'ru') as f:
-- code = f.read()
-+ f = open(filename, 'ru')
-+ code = f.read()
- self.code = code
- self.filename = filename
- self.line = line
+ from collections import defaultdict
+ import os
+@@ -10,7 +12,6 @@
+ from enthought.traits.ui import api as tui
+ from enthought.traits.ui.tabular_adapter import TabularAdapter
+
+-
+ class SuperTuple(tuple):
+ """ Generic super-tuple using pre-defined attribute names.
+ """
More information about the Python-modules-commits
mailing list