summaryrefslogtreecommitdiffstats
path: root/Doc/library/packaging.database.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-12 18:10:51 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-12 18:10:51 (GMT)
commit62ab10a05acdc8bb45549e4df6fd6fb5f4623aab (patch)
treeaa9923e821b0171ac71d11f9e8414fc594fcb61c /Doc/library/packaging.database.rst
parent5d6fbe82078fe67437755bccfa504dbbcf909a74 (diff)
downloadcpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.zip
cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.gz
cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.bz2
Replace mentions of IOError
Diffstat (limited to 'Doc/library/packaging.database.rst')
-rw-r--r--Doc/library/packaging.database.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/packaging.database.rst b/Doc/library/packaging.database.rst
index 5d0ff21..aaa2cb9 100644
--- a/Doc/library/packaging.database.rst
+++ b/Doc/library/packaging.database.rst
@@ -213,7 +213,7 @@ information that can be obtained using functions provided in this module::
# first create the Distribution instance
try:
dist = packaging.database.Distribution(path)
- except IOError:
+ except FileNotFoundError:
sys.exit('No such distribution')
print('Information about %r' % dist.name)