diff options
author | Brian Dolbec <brian.dolbec@gmail.com> | 2011-03-26 20:39:37 -0700 |
---|---|---|
committer | Brian Dolbec <brian.dolbec@gmail.com> | 2011-03-26 20:39:37 -0700 |
commit | d0339cb228c16eb491d489a2276e254bacb41c81 (patch) | |
tree | bb61cdb2189c44f0742646ae7e75c5b0b87ba396 /layman/utils.py | |
parent | e14906b88ec2da99dba82d565d88ed5ca1d40099 (diff) | |
download | layman-d0339cb228c16eb491d489a2276e254bacb41c81.tar.gz layman-d0339cb228c16eb491d489a2276e254bacb41c81.tar.bz2 layman-d0339cb228c16eb491d489a2276e254bacb41c81.zip |
migrate except ... as
Diffstat (limited to 'layman/utils.py')
-rw-r--r-- | layman/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/utils.py b/layman/utils.py index 86524ef..03ddb45 100644 --- a/layman/utils.py +++ b/layman/utils.py @@ -167,7 +167,7 @@ def delete_empty_directory(mdir, output=OUT): output.info('Deleting _empty_ directory "%s"' % mdir, 2) try: os.rmdir(mdir) - except OSError, error: + except OSError as error: output.warn(str(error)) else: output.warn('Insufficient permissions to delete _empty_ folder "%s".' % mdir) |