From 1a1c9572ef2092038c9dff8eb273bb6cd1826f9a Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 18 Apr 2013 16:20:08 +0200 Subject: [PATCH] add fileno method to glogging.LazyWriter fix #496 --- gunicorn/glogging.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gunicorn/glogging.py b/gunicorn/glogging.py index 8096f969..8c3631ba 100644 --- a/gunicorn/glogging.py +++ b/gunicorn/glogging.py @@ -130,6 +130,9 @@ class LazyWriter(object): def isatty(self): return bool(self.fileobj and self.fileobj.isatty()) + def fileno(): + return self.fileobj.fileno() + class SafeAtoms(dict):