summaryrefslogtreecommitdiff
path: root/Lib/SocketServer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/SocketServer.py')
-rw-r--r--Lib/SocketServer.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py
index 84bbcf6413..8e92b80097 100644
--- a/Lib/SocketServer.py
+++ b/Lib/SocketServer.py
@@ -577,10 +577,7 @@ class DatagramRequestHandler(BaseRequestHandler):
"""Define self.rfile and self.wfile for datagram sockets."""
def setup(self):
- try:
- from cStringIO import StringIO
- except ImportError:
- from StringIO import StringIO
+ from io import StringIO
self.packet, self.socket = self.request
self.rfile = StringIO(self.packet)
self.wfile = StringIO()