Skip to content

Instantly share code, notes, and snippets.

@benmezger
Created May 23, 2012 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benmezger/2774941 to your computer and use it in GitHub Desktop.
Save benmezger/2774941 to your computer and use it in GitHub Desktop.
if response.status:
if self.write:
with open(self.filename, "w") as data:
data.writelines("\n" + host + "--" + str(response.status))
print "%s Status: %s" % (host, response.status)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment