From ca94ad1b25c49f5433eb37fe08e19b032dcf7292 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 29 Jul 2024 00:23:08 -0700 Subject: [PATCH] use path.open() --- meanas/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meanas/__init__.py b/meanas/__init__.py index 354adc9..0757a5c 100644 --- a/meanas/__init__.py +++ b/meanas/__init__.py @@ -11,7 +11,8 @@ __author__ = 'Jan Petykiewicz' try: - with open(pathlib.Path(__file__).parent / 'README.md', 'r') as f: + readme_path = pathlib.Path(__file__).parent / 'README.md' + with readme_path.open('r') as f: __doc__ = f.read() except Exception: pass