summaryrefslogtreecommitdiffstats
path: root/redhat/applications/koffice/koffice-3.5.13-kross_utilities_syntax.patch
diff options
context:
space:
mode:
authoralbator <[email protected]>2011-11-24 23:47:54 +0100
committeralbator <[email protected]>2011-11-24 23:47:54 +0100
commitb90c8995428a95728d62ad0f1b477d2486654212 (patch)
tree9e62286a0ef81ba01d2d140cf39becc3c8ba23ec /redhat/applications/koffice/koffice-3.5.13-kross_utilities_syntax.patch
parent4d26b3bc3984739d812f22d751e3089de35293a0 (diff)
downloadtde-packaging-b90c8995428a95728d62ad0f1b477d2486654212.tar.gz
tde-packaging-b90c8995428a95728d62ad0f1b477d2486654212.zip
RHEL/Fedora: TDE fixes, add applications, etc ....
Diffstat (limited to 'redhat/applications/koffice/koffice-3.5.13-kross_utilities_syntax.patch')
-rw-r--r--redhat/applications/koffice/koffice-3.5.13-kross_utilities_syntax.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/redhat/applications/koffice/koffice-3.5.13-kross_utilities_syntax.patch b/redhat/applications/koffice/koffice-3.5.13-kross_utilities_syntax.patch
new file mode 100644
index 000000000..db24095b3
--- /dev/null
+++ b/redhat/applications/koffice/koffice-3.5.13-kross_utilities_syntax.patch
@@ -0,0 +1,34 @@
+--- koffice/lib/kross/python/scripts/RestrictedPython/Utilities.py.ORI 2011-11-25 00:13:38.356036607 +0100
++++ koffice/lib/kross/python/scripts/RestrictedPython/Utilities.py 2011-11-25 00:14:16.794035577 +0100
+@@ -46,11 +46,11 @@
+ if l%2: return args[-1]
+ utility_builtins['test'] = test
+
+-def reorder(s, with=None, without=()):
+- # s, with, and without are sequences treated as sets.
+- # The result is subtract(intersect(s, with), without),
+- # unless with is None, in which case it is subtract(s, without).
+- if with is None: with=s
++def reorder(s, swith=None, swithout=()):
++ # s, swith, and swithout are sequences treated as sets.
++ # The result is subtract(intersect(s, swith), swithout),
++ # unless swith is None, in which case it is subtract(s, swithout).
++ if swith is None: swith=s
+ d={}
+ tt=type(())
+ for i in s:
+@@ -61,12 +61,12 @@
+ a=r.append
+ h=d.has_key
+
+- for i in without:
++ for i in swithout:
+ if type(i) is tt and len(i)==2: k, v = i
+ else: k= v = i
+ if h(k): del d[k]
+
+- for i in with:
++ for i in swith:
+ if type(i) is tt and len(i)==2: k, v = i
+ else: k= v = i
+ if h(k):