Skip to content
Snippets Groups Projects
Unverified Commit 916027ec authored by Michael Korn's avatar Michael Korn Committed by GitHub
Browse files

Fix output (replace print()) (#130)

parent 2471c457
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ def _resolve_dfs(raw_io):
tree, fd_path = get_smb_tree(new_path, **connection_kwargs)
except SMBResponseException as link_exc:
log.warning("Failed to connect to DFS link target %s: %s" % (str(target), link_exc))
log.warning("Failed to connect to DFS link target %s: %s", str(target), link_exc)
continue
# Record the target that worked for future reference.
......@@ -563,7 +563,7 @@ class SMBRawIO(io.RawIOBase):
chunk_size, credit_request = _chunk_size(self.fd.connection, len(b), 'read')
print(f"Read {self._offset} - {chunk_size}")
log.debug("Read %d -%d.", self._offset, chunk_size)
read_msg, recv_func = self.fd.read(self._offset, chunk_size, send=False)
request = self.fd.connection.send(
read_msg,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment