mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Get rid of deprecated IOError in the doc
This commit is contained in:
parent
5898d4f4d9
commit
08af00047b
5 changed files with 12 additions and 12 deletions
|
|
@ -246,7 +246,7 @@ include a Unicode character in a string literal::
|
|||
try:
|
||||
with open('/tmp/input.txt', 'r') as f:
|
||||
...
|
||||
except IOError:
|
||||
except OSError:
|
||||
# 'File not found' error message.
|
||||
print("Fichier non trouvé")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue