-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the pre-commit happy, silence pylint when necessary
- Loading branch information
Showing
6 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries | ||
SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc | ||
SPDX-License-Identifier: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# pylint: skip-file | ||
""" | ||
Test sending an empty line to a server (issue #5) | ||
""" | ||
import click | ||
import socket | ||
|
||
|
||
@click.command() | ||
@click.argument( | ||
"address", | ||
required=True, | ||
"address", | ||
required=True, | ||
) | ||
def main(address): | ||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
s.connect((address, 80)) | ||
s.send(b"\r\n") | ||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
s.connect((address, 80)) | ||
s.send(b"\r\n") | ||
|
||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters