~ubuntu-branches/ubuntu/hardy/python2.5/hardy-proposed

« back to all changes in this revision

Viewing changes to debian/patches/issue961805.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-02-26 12:27:11 UTC
  • Revision ID: james.westby@ubuntu.com-20080226122711-ctro12lqk44qvptw
Tags: 2.5.2-0ubuntu3
Fix issue 961805, Tk Text.edit_modified() fails. LP: #84720.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
 
 
3
# DP: Fix issue 961805, Text.edit_modified() fails.
 
4
 
 
5
dir=
 
6
if [ $# -eq 3 -a "$2" = '-d' ]; then
 
7
    pdir="-d $3"
 
8
    dir="$3/"
 
9
elif [ $# -ne 1 ]; then
 
10
    echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
 
11
    exit 1
 
12
fi
 
13
case "$1" in
 
14
    -patch)
 
15
        patch $pdir -f --no-backup-if-mismatch -p0 < $0
 
16
        ;;
 
17
    -unpatch)
 
18
        patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
 
19
        ;;
 
20
    *)
 
21
        echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
 
22
        exit 1
 
23
esac
 
24
exit 0
 
25
 
 
26
Index: Lib/lib-tk/Tkinter.py
 
27
===================================================================
 
28
--- Lib/lib-tk/Tkinter.py       (revision 53542)
 
29
+++ Lib/lib-tk/Tkinter.py       (working copy)
 
30
@@ -2910,8 +2910,7 @@
 
31
         and edit_undo
 
32
 
 
33
         """
 
34
-        return self._getints(
 
35
-            self.tk.call((self._w, 'edit') + args)) or ()
 
36
+        return self.tk.call((self._w, 'edit') + args)
 
37
 
 
38
     def edit_modified(self, arg=None):
 
39
         """Get or Set the modified flag