diff --git a/CHANGELOG.md b/CHANGELOG.md index 710c5748..cf87b87f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ # Changelog -## FUTURE - TBD +## 1.9.0 - 2022-02-01 * Fix connection cache reuse for some DFS referral requests +* Add `smbclient.path` to the `smbclient` import allowing `import smbclient; smbclient.path.func()` ## 1.8.3 - 2021-11-19 diff --git a/setup.py b/setup.py index 3d8b6009..13b3cc57 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def abs_path(rel_path): setup( name='smbprotocol', - version='1.8.3', + version='1.9.0', packages=['smbclient', 'smbprotocol'], install_requires=[ 'cryptography>=2.0', diff --git a/smbclient/__init__.py b/smbclient/__init__.py index 39470557..fc0448e9 100644 --- a/smbclient/__init__.py +++ b/smbclient/__init__.py @@ -3,6 +3,7 @@ # MIT License (see LICENSE or https://opensource.org/licenses/MIT) import logging +import smbclient.path from smbclient._pool import ( ClientConfig, @@ -51,12 +52,5 @@ XATTR_REPLACE, ) -try: - from logging import NullHandler -except ImportError: # pragma: no cover - class NullHandler(logging.Handler): - def emit(self, record): - pass - logger = logging.getLogger(__name__) -logger.addHandler(NullHandler()) +logger.addHandler(logging.NullHandler())