8000 Fix send_file.py by lighting9999 · Pull Request #12566 · TheAlgorithms/Python · GitHub
[go: up one dir, main page]

Skip to content

Fix send_file.py #12566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 8, 2025
commit d99e72f4f7e41d058dad638f1b6053d0ee7fb835
2 changes: 1 addition & 1 deletion file_transfer/send_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def send_file(filename: str = "mytext.txt", testing: bool = False) -> None:
print(f"Got connection from {addr}")
data = conn.recv(1024)
if not data:
break #IF NOT data received,the Client has closed the Connection.
break # IF NOT data received,the Client has closed the Connection.
print(f"Server received: {data = }")

with open(filename, "rb") as in_file:
Expand Down
0