Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
smbprotocol-readonly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Merlin Sievers
smbprotocol-readonly
Commits
916027ec
Unverified
Commit
916027ec
authored
3 years ago
by
Michael Korn
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix output (replace print()) (#130)
parent
2471c457
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
smbclient/_io.py
+2
-2
2 additions, 2 deletions
smbclient/_io.py
with
2 additions
and
2 deletions
smbclient/_io.py
+
2
−
2
View file @
916027ec
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment