Hello community, here is the log from the commit of package python-tinydb for openSUSE:Factory checked in at 2019-11-10 22:49:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tinydb (Old) and /work/SRC/openSUSE:Factory/.python-tinydb.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tinydb" Sun Nov 10 22:49:57 2019 rev:5 rq:747196 version:3.15.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tinydb/python-tinydb.changes 2019-10-21 12:31:46.872190626 +0200 +++ /work/SRC/openSUSE:Factory/.python-tinydb.new.2990/python-tinydb.changes 2019-11-10 22:49:58.294075348 +0100 @@ -1,0 +2,6 @@ +Sat Nov 9 14:37:54 UTC 2019 - Arun Persaud <[email protected]> + +- update to version 3.15.1: + * Internal change: fix missing values handling for LRUCache + +------------------------------------------------------------------- Old: ---- tinydb-3.15.0.tar.gz New: ---- tinydb-3.15.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tinydb.spec ++++++ --- /var/tmp/diff_new_pack.ytO5H0/_old 2019-11-10 22:49:58.802076421 +0100 +++ /var/tmp/diff_new_pack.ytO5H0/_new 2019-11-10 22:49:58.802076421 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tinydb -Version: 3.15.0 +Version: 3.15.1 Release: 0 Summary: A document-oriented database License: MIT ++++++ tinydb-3.15.0.tar.gz -> tinydb-3.15.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tinydb-3.15.0/PKG-INFO new/tinydb-3.15.1/PKG-INFO --- old/tinydb-3.15.0/PKG-INFO 2019-10-12 16:14:57.000000000 +0200 +++ new/tinydb-3.15.1/PKG-INFO 2019-10-26 17:21:02.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: tinydb -Version: 3.15.0 +Version: 3.15.1 Summary: TinyDB is a tiny, document oriented database optimized for your happiness :) Home-page: https://github.com/msiemens/tinydb Author: Markus Siemens diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tinydb-3.15.0/tinydb/utils.py new/tinydb-3.15.1/tinydb/utils.py --- old/tinydb-3.15.0/tinydb/utils.py 2019-09-13 23:08:17.000000000 +0200 +++ new/tinydb-3.15.1/tinydb/utils.py 2019-10-26 17:17:52.000000000 +0200 @@ -31,8 +31,8 @@ def __len__(self): return self.length - def __contains__(self, item): - return item in self.__cache + def __contains__(self, key): + return key in self.__cache def __setitem__(self, key, value): self.set(key, value) @@ -41,6 +41,9 @@ del self.__cache[key] def __getitem__(self, key): + if key not in self: + raise KeyError(key) + return self.get(key) def __iter__(self): @@ -48,10 +51,14 @@ def get(self, key, default=None): value = self.__cache.get(key) - if value: + + if value is not None: + # Put the key back to the front of the ordered dict by + # re-insertig it del self.__cache[key] self.__cache[key] = value return value + return default def set(self, key, value): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tinydb-3.15.0/tinydb/version.py new/tinydb-3.15.1/tinydb/version.py --- old/tinydb-3.15.0/tinydb/version.py 2019-10-12 16:11:11.000000000 +0200 +++ new/tinydb-3.15.1/tinydb/version.py 2019-10-26 17:19:11.000000000 +0200 @@ -1 +1 @@ -__version__ = '3.15.0' +__version__ = '3.15.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tinydb-3.15.0/tinydb.egg-info/PKG-INFO new/tinydb-3.15.1/tinydb.egg-info/PKG-INFO --- old/tinydb-3.15.0/tinydb.egg-info/PKG-INFO 2019-10-12 16:14:57.000000000 +0200 +++ new/tinydb-3.15.1/tinydb.egg-info/PKG-INFO 2019-10-26 17:21:02.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: tinydb -Version: 3.15.0 +Version: 3.15.1 Summary: TinyDB is a tiny, document oriented database optimized for your happiness :) Home-page: https://github.com/msiemens/tinydb Author: Markus Siemens
