diff options
Diffstat (limited to 'Demo')
-rwxr-xr-x | Demo/pdist/cvslock.py | 2 | ||||
-rw-r--r-- | Demo/scripts/toaiff.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Demo/pdist/cvslock.py b/Demo/pdist/cvslock.py index a48c702..ffaa15e 100755 --- a/Demo/pdist/cvslock.py +++ b/Demo/pdist/cvslock.py @@ -131,7 +131,7 @@ class Lock: return except os.error as msg: self.lockdir = None - if msg[0] == EEXIST: + if msg.args[0] == EEXIST: try: st = os.stat(self.cvslck) except os.error: diff --git a/Demo/scripts/toaiff.py b/Demo/scripts/toaiff.py index 5794859..0e9be23 100644 --- a/Demo/scripts/toaiff.py +++ b/Demo/scripts/toaiff.py @@ -89,8 +89,8 @@ def _toaiff(filename, temps): ftype = ftype[0] # All we're interested in except IOError as msg: if type(msg) == type(()) and len(msg) == 2 and \ - type(msg[0]) == type(0) and type(msg[1]) == type(''): - msg = msg[1] + type(msg.args[0]) == type(0) and type(msg.args[1]) == type(''): + msg = msg.args[1] if type(msg) != type(''): msg = repr(msg) raise error(filename + ': ' + msg) |