summaryrefslogtreecommitdiffstats
path: root/abs/core/python2/Python-2.5.2-idlelib.patch
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-12-09 03:55:04 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-12-09 03:55:04 (GMT)
commita34c6f33ceb002222d49919b8e702e6e19a81809 (patch)
tree4f210d0c1331c5e3279fb377b40229a311f02877 /abs/core/python2/Python-2.5.2-idlelib.patch
parent22cf86961b2c62437603fd3a61dfab580bedd837 (diff)
downloadlinhes_pkgbuild-a34c6f33ceb002222d49919b8e702e6e19a81809.zip
linhes_pkgbuild-a34c6f33ceb002222d49919b8e702e6e19a81809.tar.gz
linhes_pkgbuild-a34c6f33ceb002222d49919b8e702e6e19a81809.tar.bz2
python2: downgrade to python 2.6.6
Diffstat (limited to 'abs/core/python2/Python-2.5.2-idlelib.patch')
-rw-r--r--abs/core/python2/Python-2.5.2-idlelib.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/core/python2/Python-2.5.2-idlelib.patch b/abs/core/python2/Python-2.5.2-idlelib.patch
new file mode 100644
index 0000000..50c987a
--- /dev/null
+++ b/abs/core/python2/Python-2.5.2-idlelib.patch
@@ -0,0 +1,17 @@
+--- Lib/idlelib/WidgetRedirector.py.orig 2008-04-23 23:39:57.000000000 -0700
++++ Lib/idlelib/WidgetRedirector.py 2008-04-23 23:46:55.000000000 -0700
+@@ -53,7 +53,13 @@
+ if m:
+ return m(*args)
+ else:
+- return self.tk.call((self.orig, cmd) + args)
++ #return self.tk.call((self.orig, cmd) + args)
++ r = self.tk.call((self.orig, cmd) + args)
++ if isinstance(r, tuple):
++ # convert to string ourselves so we get a Tcl list
++ # that can be converted back into a tuple
++ r = ' '.join(map(str, r))
++ return r
+ except TclError:
+ return ""
+