updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / python25-db47 / Python-2.5.2-idlelib.patch
blob50c987a62fc72ba1f3f72a5bbea5ad19f660e0cb
1 --- Lib/idlelib/WidgetRedirector.py.orig 2008-04-23 23:39:57.000000000 -0700
2 +++ Lib/idlelib/WidgetRedirector.py 2008-04-23 23:46:55.000000000 -0700
3 @@ -53,7 +53,13 @@
4 if m:
5 return m(*args)
6 else:
7 - return self.tk.call((self.orig, cmd) + args)
8 + #return self.tk.call((self.orig, cmd) + args)
9 + r = self.tk.call((self.orig, cmd) + args)
10 + if isinstance(r, tuple):
11 + # convert to string ourselves so we get a Tcl list
12 + # that can be converted back into a tuple
13 + r = ' '.join(map(str, r))
14 + return r
15 except TclError:
16 return ""