mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #16341: convert examples to use except ... as ... syntax.
This commit is contained in:
parent
5c89c19eae
commit
1625d88709
10 changed files with 21 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue