summaryrefslogtreecommitdiffstats
path: root/layman/utils.py
diff options
context:
space:
mode:
authorBrian Dolbec <brian.dolbec@gmail.com>2011-03-26 20:39:37 -0700
committerBrian Dolbec <brian.dolbec@gmail.com>2011-03-26 20:39:37 -0700
commitd0339cb228c16eb491d489a2276e254bacb41c81 (patch)
treebb61cdb2189c44f0742646ae7e75c5b0b87ba396 /layman/utils.py
parente14906b88ec2da99dba82d565d88ed5ca1d40099 (diff)
downloadlayman-d0339cb228c16eb491d489a2276e254bacb41c81.tar.gz
layman-d0339cb228c16eb491d489a2276e254bacb41c81.tar.bz2
layman-d0339cb228c16eb491d489a2276e254bacb41c81.zip
migrate except ... as
Diffstat (limited to 'layman/utils.py')
-rw-r--r--layman/utils.py2
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)