mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
make _path static
This commit is contained in:
parent
e247ac3c47
commit
77741977a1
1 changed files with 2 additions and 1 deletions
|
@ -291,7 +291,8 @@ class DeckManager:
|
|||
ancestorPath = self._path(ancestorDeckName)
|
||||
return ancestorPath == self._path(descendantDeckName)[0 : len(ancestorPath)]
|
||||
|
||||
def _path(self, name: str) -> Any:
|
||||
@staticmethod
|
||||
def _path(name: str) -> Any:
|
||||
return name.split("::")
|
||||
|
||||
def _basename(self, name: str) -> Any:
|
||||
|
|
Loading…
Reference in a new issue