Fixed formatting.

This commit is contained in:
Fletcher Boyd 2013-09-04 18:30:04 +08:00
parent 146ae3c279
commit 4069dd21a3
89 changed files with 615 additions and 496 deletions

View file

@ -9,7 +9,7 @@ ping_regex = re.compile(r"(\d+.\d+)/(\d+.\d+)/(\d+.\d+)/(\d+.\d+)")
@hook.command
def ping(inp, reply=None):
"ping <host> [count] -- Pings <host> [count] times."
"""ping <host> [count] -- Pings <host> [count] times."""
if os.name == "nt":
return "Sorry, this command is not supported on Windows systems."
@ -39,4 +39,4 @@ def ping(inp, reply=None):
else:
m = re.search(ping_regex, pingcmd)
return "min: %sms, max: %sms, average: %sms, range: %sms, count: %s" \
% (m.group(1), m.group(3), m.group(2), m.group(4), count)
% (m.group(1), m.group(3), m.group(2), m.group(4), count)