mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Use the preferred form of raise statements in the docs.
This commit is contained in:
parent
dad7b7b1cb
commit
c1edec3374
12 changed files with 26 additions and 27 deletions
|
@ -37,7 +37,7 @@ Usage: %prog [options] msgfile
|
|||
os.mkdir(opts.directory)
|
||||
except OSError, e:
|
||||
# Ignore directory exists error
|
||||
if e.errno <> errno.EEXIST:
|
||||
if e.errno != errno.EEXIST:
|
||||
raise
|
||||
|
||||
fp = open(msgfile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue