4
if [ $# -eq 3 -a "$2" = '-d' ]; then
7
elif [ $# -ne 1 ]; then
8
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
13
patch $pdir -f --no-backup-if-mismatch -p0 < $0
16
patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
19
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
24
# DP: Fix python2.5 / tk8.5 incompatibility (http://bugs.python.org/issue2693)
26
--- Lib/idlelib/WidgetRedirector.py.orig 2009-07-24
27
18:43:57.000000000 +0200
28
+++ Lib/idlelib/WidgetRedirector.py 2009-07-24
29
18:49:39.000000000 +0200
34
- return self.tk.call((self.orig, cmd) + args)
35
+ result = self.tk.call((self.orig, cmd) + args)
36
+ if isinstance(result, tuple):
37
+ result = '{%s}' % '} {'.join(map(str, result))