Simplify FactCache.update()

We only need FactCache.update() for the backwards compatibility shim as
MutableMapping.update() will do the right thing.
This commit is contained in:
Toshio Kuratomi
2018-12-04 17:14:50 -08:00
parent 33f0c1ce22
commit bd7322a3f6
3 changed files with 47 additions and 20 deletions

View File

@@ -63,7 +63,8 @@ Deprecated
2. The ``FactCache.update()`` method has been converted to follow the dict API. It now takes a
dictionary as its sole argument and updates itself with the dictionary's items. The previous
API where ``update()`` took a key and a value will now issue a deprecation warning and will be
removed in 2.12.
removed in 2.12. If you need the old behaviour switch to ``FactCache.first_order_merge()``
instead.
Modules
=======