From 323d3645721dbf843743b60c23f8cd27a9deb3f2 Mon Sep 17 00:00:00 2001 From: Bryon Roche Date: Thu, 14 Jul 2016 05:20:39 -0700 Subject: [PATCH] Added missing support method for current FauxSocket for pypy --- lib/cherrypy/wsgiserver/wsgiserver2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cherrypy/wsgiserver/wsgiserver2.py b/lib/cherrypy/wsgiserver/wsgiserver2.py index b4919cf5..ee1f8214 100644 --- a/lib/cherrypy/wsgiserver/wsgiserver2.py +++ b/lib/cherrypy/wsgiserver/wsgiserver2.py @@ -99,12 +99,14 @@ DEFAULT_BUFFER_SIZE = -1 class FauxSocket(object): - """Faux socket with the minimal interface required by pypy""" def _reuse(self): pass + def _drop(self): + pass + _fileobject_uses_str_type = isinstance( socket._fileobject(FauxSocket())._rbuf, basestring) del FauxSocket # this class is not longer required for anything.