Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert authored and Robert committed Mar 21, 2019
1 parent 26f8cc2 commit 06f4ece
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions winping/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def check_size(value):
dest="timeout",
default=1000)
parser.add_argument("-l",
help="timeout in seconds to wait for each reply",
help="number of data bytes to be sent",
type=check_size,
dest="size",
default=32)
Expand All @@ -68,7 +68,6 @@ def check_size(value):
dest="force_ipv6",
action="store_true")


args = parser.parse_args()
return args

Expand All @@ -83,7 +82,7 @@ def main():
print("Ping request could not find host %s. "
"Please check the name and try again." % (args.address),
file=sys.stderr)
exit(3)
sys.exit(3)
ip = ai_list[0][4][0]
af = ai_list[0][0]
ping_fun, Handle = ((ping, IcmpHandle) if af == socket.AF_INET
Expand Down

0 comments on commit 06f4ece

Please sign in to comment.