diff options
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py b/Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py index 8fe78b1..17aaf47 100644 --- a/Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py @@ -25,7 +25,7 @@ class Terminal_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -44,7 +44,7 @@ class Terminal_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -65,7 +65,7 @@ class Terminal_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -89,7 +89,7 @@ class Terminal_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): |