From 37e671203620c8b030412666fd03283fad9fcd44 Mon Sep 17 00:00:00 2001 From: Bret Taylor Date: Sun, 13 Sep 2009 12:26:16 -0700 Subject: [PATCH] Two minor typos --- demos/helloworld/helloworld.py | 1 - tornado/iostream.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/demos/helloworld/helloworld.py b/demos/helloworld/helloworld.py index 754f72f3..0f1ed61f 100755 --- a/demos/helloworld/helloworld.py +++ b/demos/helloworld/helloworld.py @@ -18,7 +18,6 @@ import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web -import logging from tornado.options import define, options diff --git a/tornado/iostream.py b/tornado/iostream.py index 20d017ff..53a50c76 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -204,7 +204,7 @@ class IOStream(object): if e[0] in (errno.EWOULDBLOCK, errno.EAGAIN): break else: - logging.warning("Read error on %d: %s", + logging.warning("Write error on %d: %s", self.socket.fileno(), e) self.close() return