Skip to content

Commit

Permalink
Add path to smbclient import and bump version (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 authored Jan 31, 2022
1 parent a755bed commit ad98d67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
10 changes: 2 additions & 8 deletions smbclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)

import logging
import smbclient.path

from smbclient._pool import (
ClientConfig,
Expand Down Expand Up @@ -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())

0 comments on commit ad98d67

Please sign in to comment.