Skip to content
Snippets Groups Projects
Commit a75290f2 authored by Andreas Ziegler's avatar Andreas Ziegler
Browse files

store: use positive type check in get_library_objects()

Instead of checking if an entry is not a string, let's
directly check if the entry is a Library object. This
fixes a compatibility issue with Python 2 where the
strings were actually of type 'unicode'.
parent e85a96a8
No related branches found
No related tags found
No related merge requests found
Pipeline #14574 passed
......@@ -172,7 +172,7 @@ class LibraryStore(BaseStore):
def get_library_objects(self):
retval = set(val for (key, val) in self.items()
if not isinstance(val, str))
if isinstance(val, Library))
retval.update(self.get_from_path(path) for path in self._entrylist)
return retval
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment