aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/base/reader.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsie/base/reader.py')
-rw-r--r--bsie/base/reader.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsie/base/reader.py b/bsie/base/reader.py
index b7eabf7..cbabd36 100644
--- a/bsie/base/reader.py
+++ b/bsie/base/reader.py
@@ -13,7 +13,7 @@ import abc
import typing
# bsie imports
-from bsie.utils.bsfs import URI, typename
+from bsie.utils import bsfs
# exports
__all__: typing.Sequence[str] = (
@@ -27,10 +27,10 @@ class Reader(abc.ABC):
"""Read and return some content from a file."""
def __str__(self) -> str:
- return typename(self)
+ return bsfs.typename(self)
def __repr__(self) -> str:
- return f'{typename(self)}()'
+ return f'{bsfs.typename(self)}()'
def __eq__(self, other: typing.Any) -> bool:
return isinstance(other, type(self))
@@ -39,7 +39,7 @@ class Reader(abc.ABC):
return hash(type(self))
@abc.abstractmethod
- def __call__(self, path: URI) -> typing.Any:
+ def __call__(self, path: bsfs.URI) -> typing.Any:
"""Return some content of the file at *path*.
Raises a `ReaderError` if the reader cannot make sense of the file format.
"""