From c1a2252d205d69f6c9b5ae4b5c4bf236236524d3 Mon Sep 17 00:00:00 2001 From: Nicola Coretti Date: Thu, 14 Mar 2024 08:07:34 +0100 Subject: [PATCH] Reformat and add changelog --- doc/changes/unreleased.md | 1 + doc/examples/logger.py | 4 +++- exasol/bucketfs/_buckets.py | 2 ++ exasol/bucketfs/_shared.py | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/changes/unreleased.md b/doc/changes/unreleased.md index c68c1bbd..176e7a47 100644 --- a/doc/changes/unreleased.md +++ b/doc/changes/unreleased.md @@ -27,3 +27,4 @@ - Update abatilo/actions-poetry from `v2.1.4` to `v3.0.0` - Update actions/setup-python from `v2` to `v5` - Added build system section to project `pyproject.toml` +- Restructure internals of bucketfs package diff --git a/doc/examples/logger.py b/doc/examples/logger.py index b44bb078..3fb47af4 100644 --- a/doc/examples/logger.py +++ b/doc/examples/logger.py @@ -1,10 +1,12 @@ import logging + from exasol.bucketfs import Service logging.basicConfig(level=logging.INFO) # Advanced Logging import logging + from exasol.bucketfs import Service # Attention: @@ -16,7 +18,7 @@ # Explicityly Configure the bucketfs logger if you need to. # # 1. Get a reference to the bucketfs logger -bucketfs_logger = logging.getLogger('exasol.bucketfs') +bucketfs_logger = logging.getLogger("exasol.bucketfs") # 2. Configure the bucketfs logger as needed # Note: diff --git a/exasol/bucketfs/_buckets.py b/exasol/bucketfs/_buckets.py index 7cb0996d..b65f13c5 100644 --- a/exasol/bucketfs/_buckets.py +++ b/exasol/bucketfs/_buckets.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from typing import ( BinaryIO, ByteString, diff --git a/exasol/bucketfs/_shared.py b/exasol/bucketfs/_shared.py index c5c1a147..631216e4 100644 --- a/exasol/bucketfs/_shared.py +++ b/exasol/bucketfs/_shared.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from urllib.parse import urlparse from exasol.bucketfs._error import BucketFsError