]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/hash/MKhash.py
Raise Error(message) for Py3 compatibility
[m_lib.git] / m_lib / hash / MKhash.py
index 812a14a9eba5661389cac80a741fd404ac88d0c1..d11a701e316005d291e0cc9dc25eef454238a0cd 100644 (file)
@@ -57,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):
@@ -73,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()