Skip to content

Commit

Permalink
Merge reactors-py3-6068.
Browse files Browse the repository at this point in the history
Author: itamar
Review: exarkun
Fixes: twisted#6068

select, poll and epoll reactors are deemed to be sufficiently working on Python 3, given passing TCP, UDP and fdset tests.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@36155 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
  • Loading branch information
itamarst committed Oct 15, 2012
1 parent dcc7f1d commit 4f44362
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion admin/_twistedpython3.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
"twisted.internet.default",
"twisted.internet.defer",
"twisted.internet._endpointspy3",
"twisted.internet.epollreactor",
"twisted.internet.error",
"twisted.internet.interfaces",
"twisted.internet.fdesc",
"twisted.internet.main",
"twisted.internet.protocol",
"twisted.internet.reactor", # don't expect it to work yet, though!
"twisted.internet.pollreactor",
"twisted.internet.reactor",
"twisted.internet.selectreactor",
"twisted.internet._signals",
"twisted.internet.task",
"twisted.internet.tcp",
Expand Down Expand Up @@ -115,6 +118,7 @@
"twisted.internet.test.test_core",
"twisted.internet.test.test_default",
"twisted.internet.test.test_endpointspy3",
"twisted.internet.test.test_epollreactor",
"twisted.internet.test.test_fdset",
"twisted.internet.test.test_filedescriptor",
"twisted.internet.test.test_inlinecb",
Expand Down
2 changes: 2 additions & 0 deletions twisted/internet/epollreactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
epollreactor.install()
"""

from __future__ import division, absolute_import

import errno

from zope.interface import implementer
Expand Down
2 changes: 2 additions & 0 deletions twisted/internet/pollreactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
pollreactor.install()
"""

from __future__ import division, absolute_import

# System imports
import errno
from select import error as SelectError, poll
Expand Down
3 changes: 2 additions & 1 deletion twisted/internet/selectreactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.


"""
Select reactor
"""

from __future__ import division, absolute_import

from time import sleep
import sys, select, socket
from errno import EINTR, EBADF
Expand Down
2 changes: 2 additions & 0 deletions twisted/internet/test/test_epollreactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Tests for L{twisted.internet.epollreactor}.
"""

from __future__ import division, absolute_import

from twisted.trial.unittest import TestCase
try:
from twisted.internet.epollreactor import _ContinuousPolling
Expand Down
Empty file added twisted/topfiles/6068.misc
Empty file.

0 comments on commit 4f44362

Please sign in to comment.