Commits

Mikhail Korobov committed b88b33a

has_key method for tinycdb class

Comments (0)

Files changed (1)

             raise CDBError("Unknown Error")
         return rez
 
+    def has_key(self, key):
+        return self.__contains__(key)
+
     def __repr__(self):
         return "TinyCDB('%s', '%s')" % (self.fname, chr(self.mode))