Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 253582
Collapse All | Expand All

(-)dcoppython-3.5.10.orig/dcoppython/shell/gen_marshal_code.py (-5 / +5 lines)
Lines 120-131 Link Here
120
    def __init__(self, type):
120
    def __init__(self, type):
121
        self.type = type
121
        self.type = type
122
        self.demarshal_as = None
122
        self.demarshal_as = None
123
        self.as = []
123
        self.as_list = []
124
        self.info = []
124
        self.info = []
125
125
126
    def add_as(self, as):
126
    def add_as(self, _as):
127
        if self.demarshal_as == None: self.demarshal_as = as
127
        if self.demarshal_as == None: self.demarshal_as = _as
128
        self.as += [as]
128
        self.as_list += [_as]
129
129
130
    def add_info(self,info):
130
    def add_info(self,info):
131
        self.info += [info]
131
        self.info += [info]
Lines 133-139 Link Here
133
    def xml(self):
133
    def xml(self):
134
        return ['<type dcoptype="%s">' % self.type,
134
        return ['<type dcoptype="%s">' % self.type,
135
                '  <demarshal-as>%s</demarshal-as>' % self.demarshal_as] + \
135
                '  <demarshal-as>%s</demarshal-as>' % self.demarshal_as] + \
136
               ['  <marshal-as>%s</marshal-as>' % as for as in self.as ] + \
136
               ['  <marshal-as>%s</marshal-as>' % _as for _as in self.as_list ] + \
137
               ['  <info>%s</info>' % info for info in self.info ] + \
137
               ['  <info>%s</info>' % info for info in self.info ] + \
138
               ['</type>']
138
               ['</type>']
139
139

Return to bug 253582