Commits

Gustavo Picon committed 18a47ff

Quickly import/delete _pyio in server.py

  • Participants
  • Parent commits 793f9e0

Comments (0)

Files changed (1)

File cheroot/server.py

         socket.IPV6_V6ONLY = 27
 
 if py3k:
-    import _pyio as io
-    DEFAULT_BUFFER_SIZE = io.DEFAULT_BUFFER_SIZE
+    import _pyio
+    DEFAULT_BUFFER_SIZE = _pyio.DEFAULT_BUFFER_SIZE
+    del _pyio
 else:
     DEFAULT_BUFFER_SIZE = -1