Added missing support method for current FauxSocket for pypy

This commit is contained in:
Bryon Roche
2016-07-14 05:20:39 -07:00
parent e29f3a0a9a
commit 323d364572

View File

@@ -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.