mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
SF bug #543318 (Frank J. Tobin).
In DatagramRequestHandler.setup(), the wfile initialization should be StringIO.StringIO(), not StringIO.StringIO(slf.packet). Bugfix candidate (all the way back to Python 1.5.2 :-).
This commit is contained in:
parent
a2da305211
commit
beae477767
1 changed files with 1 additions and 1 deletions
|
@ -570,7 +570,7 @@ class DatagramRequestHandler(BaseRequestHandler):
|
|||
import StringIO
|
||||
self.packet, self.socket = self.request
|
||||
self.rfile = StringIO.StringIO(self.packet)
|
||||
self.wfile = StringIO.StringIO(self.packet)
|
||||
self.wfile = StringIO.StringIO()
|
||||
|
||||
def finish(self):
|
||||
self.socket.sendto(self.wfile.getvalue(), self.client_address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue