diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-03-02 08:58:29 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-03-02 08:58:29 +0100 |
commit | ba6329bbe14c832d42773dee2fe30bd7669ca255 (patch) | |
tree | 4cd2771d95adaba0663fd7879b1666ebd3ef3cb9 /bsie/apps | |
parent | 70d77819a84c73292825b81f952e162bb30753d7 (diff) | |
download | bsie-ba6329bbe14c832d42773dee2fe30bd7669ca255.tar.gz bsie-ba6329bbe14c832d42773dee2fe30bd7669ca255.tar.bz2 bsie-ba6329bbe14c832d42773dee2fe30bd7669ca255.zip |
various minor fixes
Diffstat (limited to 'bsie/apps')
-rw-r--r-- | bsie/apps/__init__.py | 2 | ||||
-rw-r--r-- | bsie/apps/_loader.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bsie/apps/__init__.py b/bsie/apps/__init__.py index cec8f84..2fe4795 100644 --- a/bsie/apps/__init__.py +++ b/bsie/apps/__init__.py @@ -33,7 +33,7 @@ def main(argv=None): parser = argparse.ArgumentParser(description=main.__doc__, prog='bsie') # version parser.add_argument('--version', action='version', - version='%(prog)s version {}.{}.{}'.format(*bsie.version_info)) + version='%(prog)s version {}.{}.{}'.format(*bsie.version_info)) # pylint: disable=C0209 # application selection parser.add_argument('app', choices=apps.keys(), help='Select the application to run.') diff --git a/bsie/apps/_loader.py b/bsie/apps/_loader.py index 36dd8a6..6411f10 100644 --- a/bsie/apps/_loader.py +++ b/bsie/apps/_loader.py @@ -16,8 +16,8 @@ DEFAULT_CONFIG_FILE = 'default_config.yaml' # exports __all__: typing.Sequence[str] = ( - 'load', 'DEFAULT_CONFIG_FILE', + 'load_pipeline', ) @@ -26,7 +26,7 @@ __all__: typing.Sequence[str] = ( def load_pipeline(path: str) -> Pipeline: """Load a pipeline according to a config at *path*.""" # load config file - with open(path, 'rt') as ifile: + with open(path, 'rt', encoding='utf-8') as ifile: cfg = yaml.safe_load(ifile) # reader builder |