Remove unnecessary condition in write_text

pull/825/head
Philip Lundrigan 2015-12-31 13:05:24 -07:00
parent ce152e9c94
commit 394c87c40b
1 changed files with 1 additions and 2 deletions

View File

@ -302,8 +302,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
self.end_headers()
if message is not None:
self.wfile.write(message.encode("UTF-8"))
self.wfile.write(message.encode("UTF-8"))
def write_file(self, path, cache_headers=True):
""" Returns a file to the user. """