mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-08 12:49:32 +01:00
Added missing support method for current FauxSocket for pypy
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user