You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
487 B
18 lines
487 B
from abc import abstractmethod
|
|
|
|
|
|
class Parser:
|
|
def __init__(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def _filename(self, index, basename=False, absolute=False):
|
|
pass
|
|
|
|
def filename(self, index, basename=False, absolute=False):
|
|
return self._filename(index, basename=basename, absolute=absolute)
|
|
|
|
def filenames(self, basename=False, absolute=False):
|
|
return [self._filename(index, basename=basename, absolute=absolute) for index in range(len(self))]
|
|
|