Get rid of deprecated IOError in the doc

This commit is contained in:
Andrew Svetlov 2014-04-01 01:13:30 +03:00
parent 5898d4f4d9
commit 08af00047b
5 changed files with 12 additions and 12 deletions

View file

@ -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é")