]> granicus.if.org Git - python/commitdiff
Regenerated.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 24 Apr 2002 09:13:24 +0000 (09:13 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 24 Apr 2002 09:13:24 +0000 (09:13 +0000)
Bugfix candidate.

Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py

index 8fe78b10cc8a0fa123700eb6f6e77c51cfc22455..17aaf476e9e4f5c069fc9251feac69f021b49cb3 100644 (file)
@@ -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('----'):