From e5b9cad783c792454ff28484e2bb01efcdc8621d Mon Sep 17 00:00:00 2001 From: delameter Date: Wed, 20 Apr 2022 10:17:54 +0300 Subject: [PATCH] - Added pack name --- dev/readme/generate.py | 5 +++-- dev/readme/generate_thumbs.py | 2 +- dev/readme/run_examples.py | 2 +- pytermor/__init__.py | 2 +- pytermor/fmt.py | 2 +- pytermor/registry.py | 2 +- pytermor/seq.py | 2 +- pytermor/sgr.py | 2 +- pytermor/util.py | 2 +- tests/test_fmt.py | 2 +- tests/test_registry.py | 2 +- tests/test_seq.py | 2 +- tests/test_util.py | 2 +- 13 files changed, 15 insertions(+), 14 deletions(-) diff --git a/dev/readme/generate.py b/dev/readme/generate.py index 18278ac8..a131bfbc 100644 --- a/dev/readme/generate.py +++ b/dev/readme/generate.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- import re @@ -11,7 +11,8 @@ def read_file(path: str) -> str: - return open(path, 'rt', encoding='utf8').read() + with open(path, 'rt', encoding='utf8') as f: + return f.read() def include_file(path: str) -> str: diff --git a/dev/readme/generate_thumbs.py b/dev/readme/generate_thumbs.py index 18573130..9c85df2b 100644 --- a/dev/readme/generate_thumbs.py +++ b/dev/readme/generate_thumbs.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- import io diff --git a/dev/readme/run_examples.py b/dev/readme/run_examples.py index 14232336..e840f6e6 100644 --- a/dev/readme/run_examples.py +++ b/dev/readme/run_examples.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- import importlib diff --git a/pytermor/__init__.py b/pytermor/__init__.py index c1dca6f6..209801b8 100644 --- a/pytermor/__init__.py +++ b/pytermor/__init__.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- from .seq import build, build_c256, build_rgb, SequenceSGR diff --git a/pytermor/fmt.py b/pytermor/fmt.py index 01fb4e62..086f9c4d 100644 --- a/pytermor/fmt.py +++ b/pytermor/fmt.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- from __future__ import annotations diff --git a/pytermor/registry.py b/pytermor/registry.py index 1de42e1f..bd66520a 100644 --- a/pytermor/registry.py +++ b/pytermor/registry.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- from __future__ import annotations diff --git a/pytermor/seq.py b/pytermor/seq.py index fbb77363..54a2daaf 100644 --- a/pytermor/seq.py +++ b/pytermor/seq.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- from __future__ import annotations diff --git a/pytermor/sgr.py b/pytermor/sgr.py index e41f3f0b..fa8559f5 100644 --- a/pytermor/sgr.py +++ b/pytermor/sgr.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- RESET = 0 diff --git a/pytermor/util.py b/pytermor/util.py index 11b386da..666c8ed4 100644 --- a/pytermor/util.py +++ b/pytermor/util.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- from __future__ import annotations diff --git a/tests/test_fmt.py b/tests/test_fmt.py index 5e231ac6..0ec4d3de 100644 --- a/tests/test_fmt.py +++ b/tests/test_fmt.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- import unittest diff --git a/tests/test_registry.py b/tests/test_registry.py index 8f77c600..3cda15ae 100644 --- a/tests/test_registry.py +++ b/tests/test_registry.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- import unittest diff --git a/tests/test_seq.py b/tests/test_seq.py index 9b2998aa..75de769c 100644 --- a/tests/test_seq.py +++ b/tests/test_seq.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- import unittest diff --git a/tests/test_util.py b/tests/test_util.py index 66303da6..2be263ba 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# pytermor [ANSI formatted terminal output toolset] +# es7s/pytermor [ANSI formatted terminal output toolset] # (C) 2022 A. Shavykin <0.delameter@gmail.com> # ----------------------------------------------------------------------------- import unittest