Closed rspeer closed 6 years ago
As another example of a catch-22 DeprecationWarning: using Trie.save
tells you "Trie.write is deprecated and will be removed in marisa_trie 0.8.0. Please use Trie.save instead.".
Relatedly, if I use BytesTrie.load()
, the warning tells me to "use Trie.load instead", which is wrong because Trie.load
will not load a BytesTrie.
There's a nonsensical DeprecationWarning in
Trie.load
:Some things that are wrong with this:
Trie.save
, I usedTrie.load
, which is exactly what it's telling me to use.Trie.load
would be able to replaceTrie.save
.Trie.read
, notTrie.save
.Trie.load
is implemented by usingTrie.read
, so there is no way to avoid the DeprecationWarning.Expected behavior: if I use the function that the DeprecationWarning tells me I should use, I should not get a DeprecationWarning.