make _path static

This commit is contained in:
Arthur Milchior 2020-04-06 22:45:30 +02:00
parent e247ac3c47
commit 77741977a1

View file

@ -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: