Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95df3fd

Browse files
committed
Second part of fix for #493826: regenerated suite modules so errn exists but == 0 doesn't signal an error.
Bugfix candidate.
1 parent 1898353 commit 95df3fd

33 files changed

Lines changed: 687 additions & 1012 deletions

Mac/Lib/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def add(self, _object, _attributes={}, **_arguments):
3737

3838
_reply, _arguments, _attributes = self.send(_code, _subcode,
3939
_arguments, _attributes)
40-
if _arguments.has_key('errn'):
40+
if _arguments.get('errn', 0):
4141
raise aetools.Error, aetools.decodeerror(_arguments)
4242
# XXXX Optionally decode result
4343
if _arguments.has_key('----'):
@@ -61,7 +61,7 @@ def export(self, _no_object=None, _attributes={}, **_arguments):
6161

6262
_reply, _arguments, _attributes = self.send(_code, _subcode,
6363
_arguments, _attributes)
64-
if _arguments.has_key('errn'):
64+
if _arguments.get('errn', 0):
6565
raise aetools.Error, aetools.decodeerror(_arguments)
6666
# XXXX Optionally decode result
6767
if _arguments.has_key('----'):
@@ -80,7 +80,7 @@ def update(self, _no_object=None, _attributes={}, **_arguments):
8080

8181
_reply, _arguments, _attributes = self.send(_code, _subcode,
8282
_arguments, _attributes)
83-
if _arguments.has_key('errn'):
83+
if _arguments.get('errn', 0):
8484
raise aetools.Error, aetools.decodeerror(_arguments)
8585
# XXXX Optionally decode result
8686
if _arguments.has_key('----'):
@@ -100,7 +100,7 @@ def check(self, _object=None, _attributes={}, **_arguments):
100100

101101
_reply, _arguments, _attributes = self.send(_code, _subcode,
102102
_arguments, _attributes)
103-
if _arguments.has_key('errn'):
103+
if _arguments.get('errn', 0):
104104
raise aetools.Error, aetools.decodeerror(_arguments)
105105
# XXXX Optionally decode result
106106
if _arguments.has_key('----'):
@@ -120,7 +120,7 @@ def compile_file(self, _object=None, _attributes={}, **_arguments):
120120

121121
_reply, _arguments, _attributes = self.send(_code, _subcode,
122122
_arguments, _attributes)
123-
if _arguments.has_key('errn'):
123+
if _arguments.get('errn', 0):
124124
raise aetools.Error, aetools.decodeerror(_arguments)
125125
# XXXX Optionally decode result
126126
if _arguments.has_key('----'):
@@ -140,7 +140,7 @@ def disassemble_file(self, _object=None, _attributes={}, **_arguments):
140140

141141
_reply, _arguments, _attributes = self.send(_code, _subcode,
142142
_arguments, _attributes)
143-
if _arguments.has_key('errn'):
143+
if _arguments.get('errn', 0):
144144
raise aetools.Error, aetools.decodeerror(_arguments)
145145
# XXXX Optionally decode result
146146
if _arguments.has_key('----'):
@@ -159,7 +159,7 @@ def build(self, _no_object=None, _attributes={}, **_arguments):
159159

160160
_reply, _arguments, _attributes = self.send(_code, _subcode,
161161
_arguments, _attributes)
162-
if _arguments.has_key('errn'):
162+
if _arguments.get('errn', 0):
163163
raise aetools.Error, aetools.decodeerror(_arguments)
164164
# XXXX Optionally decode result
165165
if _arguments.has_key('----'):
@@ -179,7 +179,7 @@ def remove_target_files(self, _object, _attributes={}, **_arguments):
179179

180180
_reply, _arguments, _attributes = self.send(_code, _subcode,
181181
_arguments, _attributes)
182-
if _arguments.has_key('errn'):
182+
if _arguments.get('errn', 0):
183183
raise aetools.Error, aetools.decodeerror(_arguments)
184184
# XXXX Optionally decode result
185185
if _arguments.has_key('----'):
@@ -198,7 +198,7 @@ def remove_object_code(self, _no_object=None, _attributes={}, **_arguments):
198198

199199
_reply, _arguments, _attributes = self.send(_code, _subcode,
200200
_arguments, _attributes)
201-
if _arguments.has_key('errn'):
201+
if _arguments.get('errn', 0):
202202
raise aetools.Error, aetools.decodeerror(_arguments)
203203
# XXXX Optionally decode result
204204
if _arguments.has_key('----'):
@@ -217,7 +217,7 @@ def run_target(self, _no_object=None, _attributes={}, **_arguments):
217217

218218
_reply, _arguments, _attributes = self.send(_code, _subcode,
219219
_arguments, _attributes)
220-
if _arguments.has_key('errn'):
220+
if _arguments.get('errn', 0):
221221
raise aetools.Error, aetools.decodeerror(_arguments)
222222
# XXXX Optionally decode result
223223
if _arguments.has_key('----'):
@@ -237,7 +237,7 @@ def touch_file(self, _object=None, _attributes={}, **_arguments):
237237

238238
_reply, _arguments, _attributes = self.send(_code, _subcode,
239239
_arguments, _attributes)
240-
if _arguments.has_key('errn'):
240+
if _arguments.get('errn', 0):
241241
raise aetools.Error, aetools.decodeerror(_arguments)
242242
# XXXX Optionally decode result
243243
if _arguments.has_key('----'):

0 commit comments

Comments
 (0)