.format
This commit is contained in:
parent
2812569593
commit
7ab4f756fe
22 changed files with 69 additions and 78 deletions
|
@ -15,6 +15,6 @@ def down(inp):
|
|||
# http://mail.python.org/pipermail/python-list/2006-December/589854.html
|
||||
try:
|
||||
http.get(inp, get_method='HEAD')
|
||||
return inp + ' seems to be up'
|
||||
return '{} seems to be up'.format(inp)
|
||||
except http.URLError:
|
||||
return inp + ' seems to be down'
|
||||
return '{} seems to be down'.format(inp)
|
||||
|
|
Reference in a new issue