Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for regression in 2.3 connecting with Calibre Companion when dele…
…ting books caused by the performance improvement in 829447f
- Loading branch information
1 parent
2002b18
commit 6925fd7
Showing
1 changed file
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6925fd7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Using tuple() creates a copy of the iterator and not list of keys? That is a new one for me. :)
Could you let me know when the new version is up so I can pass that info on?
6925fd7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's up now.
Using tuple makes it explicit that you want to operate on a copy of the set of keys in the dict, rather than relying on the behavior of the keys() method (which IIRC changes in python 3 to use an iterator).