X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fhash%2FMKhash.py;h=d11a701e316005d291e0cc9dc25eef454238a0cd;hb=e75d2c94f9bd326ebaace635a06599a1be35b024;hp=707d9febffef3a6e1c985b751d4916624d18cd4f;hpb=83f94736a59fe357b8e50ebfbc548bdafe2ccda5;p=m_lib.git diff --git a/m_lib/hash/MKhash.py b/m_lib/hash/MKhash.py index 707d9fe..d11a701 100644 --- a/m_lib/hash/MKhash.py +++ b/m_lib/hash/MKhash.py @@ -1,8 +1,4 @@ -"""Provide a (g)dbm-compatible interface to MetaKit. -Author: Oleg Broytman -Copyright (C) 2001-2002 PhiloSoft Design -License: Python""" - +"""(g)dbm-compatible interface to MetaKit""" import sys try: @@ -61,7 +57,7 @@ class MKhash: vw = self.vw ix = vw.find(key=key) if ix == -1: - raise KeyError, key + raise KeyError(key) return vw[ix].value def __setitem__(self, key, value): @@ -77,7 +73,7 @@ class MKhash: vw = self.vw ix = vw.find(key=key) if ix == -1: - raise KeyError, key + raise KeyError(key) vw.delete(ix) self._add_tran()