diff options
Diffstat (limited to 'Lib/mailcap.py')
-rw-r--r-- | Lib/mailcap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/mailcap.py b/Lib/mailcap.py index b8ed759..b2ddacd 100644 --- a/Lib/mailcap.py +++ b/Lib/mailcap.py @@ -24,11 +24,11 @@ def getcaps(): continue morecaps = readmailcapfile(fp) fp.close() - for key in morecaps.keys(): + for key, value in morecaps.iteritems(): if not key in caps: - caps[key] = morecaps[key] + caps[key] = value else: - caps[key] = caps[key] + morecaps[key] + caps[key] = caps[key] + value return caps def listmailcapfiles(): |