summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-26 13:02:59 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-26 13:02:59 (GMT)
commit5c5e829a5d23f2cbffd188ebc3688147bc38b2e3 (patch)
tree66b96d5582e8cebafc99e20c385cedcb8264a5c7 /Lib
parent2f242582f7db60a1a77b177ee33e746f04670b23 (diff)
downloadcpython-5c5e829a5d23f2cbffd188ebc3688147bc38b2e3.zip
cpython-5c5e829a5d23f2cbffd188ebc3688147bc38b2e3.tar.gz
cpython-5c5e829a5d23f2cbffd188ebc3688147bc38b2e3.tar.bz2
Use IOError.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/calendar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index 49e8e63..ee16c76 100644
--- a/Lib/calendar.py
+++ b/Lib/calendar.py
@@ -146,7 +146,7 @@ def monthcalendar(year, month):
key = `year` + month_abbr[month]
try:
return mc_cache[key]
- except RuntimeError:
+ except IOError:
mc_cache[key] = ret = _monthcalendar(year, month)
return ret