Issue #16341: convert examples to use except ... as ... syntax.

This commit is contained in:
Andrew Svetlov 2012-10-30 21:56:43 +02:00
parent 5c89c19eae
commit 1625d88709
10 changed files with 21 additions and 22 deletions

View file

@ -35,7 +35,7 @@ Usage: %prog [options] msgfile
try:
os.mkdir(opts.directory)
except OSError, e:
except OSError as e:
# Ignore directory exists error
if e.errno != errno.EEXIST:
raise