r2034 - trunk/kdebindings

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Tue Jan 6 19:58:11 PST 2009


Author: bdubbs
Date: 2009-01-06 20:58:11 -0700 (Tue, 06 Jan 2009)
New Revision: 2034

Added:
   trunk/kdebindings/kdebindings-3.5.10-python-1.patch
Log:
Patch kde python code to account for a new reserved word

Added: trunk/kdebindings/kdebindings-3.5.10-python-1.patch
===================================================================
--- trunk/kdebindings/kdebindings-3.5.10-python-1.patch	                        (rev 0)
+++ trunk/kdebindings/kdebindings-3.5.10-python-1.patch	2009-01-07 03:58:11 UTC (rev 2034)
@@ -0,0 +1,35 @@
+Submitted By: Bruce Dubbs <bdubsb at linuxfromscratch dot org>
+Date: 2009-01-06
+Initial Package Version: 3.5.10
+Origin: Upstream
+Description: Python made as a reserved word
+
+--- kdebindings-3.5.10/dcoppython/shell/gen_marshal_code.py.org        
++++ kdebindings-3.5.10/dcoppython/shell/gen_marshal_code.py    2008-10-08 
+19:36:26.077568709 +0200
+@@ -120,12 +120,12 @@
+     def __init__(self, type):
+         self.type = type
+         self.demarshal_as = None
+-        self.as = []
++        self.pas = []
+         self.info = []
+ 
+-    def add_as(self, as):
+-        if self.demarshal_as == None: self.demarshal_as = as
+-        self.as += [as]
++    def add_as(self, pas):
++        if self.demarshal_as == None: self.demarshal_as = pas
++        self.pas += [pas]
+ 
+     def add_info(self,info):
+         self.info += [info]
+@@ -133,7 +133,7 @@
+     def xml(self):
+         return ['<type dcoptype="%s">' % self.type,
+                 '  <demarshal-as>%s</demarshal-as>' % self.demarshal_as] + \
+-               ['  <marshal-as>%s</marshal-as>' % as for as in self.as ] + \
++               ['  <marshal-as>%s</marshal-as>' % pas for pas in self.pas ] + \
+                ['  <info>%s</info>' % info for info in self.info ] + \
+                ['</type>']
+ 




More information about the patches mailing list