Skip to content

Commit b4de671

Browse files
committed
threaded: Python 3 support
1 parent 2d3cba9 commit b4de671

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Xlib/threaded.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
# along with this program; if not, write to the Free Software
1717
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818

19-
import thread
19+
from six.moves import _thread
2020

2121
# We change the allocate_lock function in Xlib.support.lock to
2222
# return a basic Python lock, instead of the default dummy lock
2323

2424
from Xlib.support import lock
25-
lock.allocate_lock = thread.allocate_lock
25+
lock.allocate_lock = _thread.allocate_lock

0 commit comments

Comments
 (0)