Skip to content

Commit

Permalink
Update httpserver.py (#68)
Browse files Browse the repository at this point in the history
python3 socke use SocketIO
  • Loading branch information
huiwenTT authored Apr 26, 2024
1 parent bacefe7 commit e14c44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paste/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class _ConnFixer(object):
def __init__(self, conn):
self.__conn = conn
def makefile(self, mode, bufsize):
return socket._fileobject(self.__conn, mode, bufsize)
return socket.SocketIO(self.__conn, mode)
def __getattr__(self, attrib):
return getattr(self.__conn, attrib)

Expand Down

0 comments on commit e14c44a

Please sign in to comment.