Fix deprecated smbprotocol.query_info import
Build — Windows, Linux & macOS / GDPRScanner / linux (push) Has been cancelled
Build — Windows, Linux & macOS / GDPRScanner / macos (push) Has been cancelled
Build — Windows, Linux & macOS / GDPRScanner / windows (push) Has been cancelled
Build — Windows, Linux & macOS / Create GitHub Release (push) Has been cancelled
Build — Windows, Linux & macOS / GDPRScanner / linux (push) Has been cancelled
Build — Windows, Linux & macOS / GDPRScanner / macos (push) Has been cancelled
Build — Windows, Linux & macOS / GDPRScanner / windows (push) Has been cancelled
Build — Windows, Linux & macOS / Create GitHub Release (push) Has been cancelled
smbprotocol.query_info is a thin deprecation shim (from smbprotocol.file_info import * + a DeprecationWarning) scheduled for removal in the library's next major release. Switched to importing FileDirectoryInformation directly from smbprotocol.file_info, the actual current location - confirmed present there in the installed package. Pure rename, no behavior change: all 227 tests still pass, and the warning is gone from the test output.
This commit is contained in:
1 parent
edc820051e
commit
b77bf70ff5
1 file changed
+1
-1
+1
-1
@@ -38,7 +38,7 @@ try:
|
|||||||
FileAttributes, FilePipePrinterAccessMask, ShareAccess,
|
FileAttributes, FilePipePrinterAccessMask, ShareAccess,
|
||||||
ImpersonationLevel,
|
ImpersonationLevel,
|
||||||
)
|
)
|
||||||
from smbprotocol.query_info import FileDirectoryInformation
|
from smbprotocol.file_info import FileDirectoryInformation
|
||||||
SMB_OK = True
|
SMB_OK = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
SMB_OK = False
|
SMB_OK = False
|
||||||
|
|||||||
Reference in new issue
Block a user