From 1621f2ff2673dae04bfaccfc00fdd1662e50b679 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 19 Mar 2021 00:09:15 +1000 Subject: [PATCH] remove temp variable --- pylib/anki/tags.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pylib/anki/tags.py b/pylib/anki/tags.py index 2726e6a7c..49310f2b3 100644 --- a/pylib/anki/tags.py +++ b/pylib/anki/tags.py @@ -89,8 +89,7 @@ class TagManager: def rename(self, old: str, new: str) -> OpChangesWithCount: "Rename provided tag and its children, returning number of changed notes." - x = self.col._backend.rename_tags(current_prefix=old, new_prefix=new) - return x + return self.col._backend.rename_tags(current_prefix=old, new_prefix=new) def remove(self, space_separated_tags: str) -> OpChangesWithCount: "Remove the provided tag(s) and their children from notes and the tag list."