Issue #1163 resolved

AttributeError in cherrypy.process.plugins - threading._Timer renamed to threading.Timer in Python 3.3

Anonymous created an issue

CherryPy 3.2 isn't compatible with Python 3.3 (beta).

When doing import cherrypy, the following error occurs:

import cherrypy

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "./cherrypy/", line 82, in <module> from cherrypy import process File "./cherrypy/process/", line 14, in <module> from cherrypy.process import plugins, servers File "./cherrypy/process/", line 424, in <module> class PerpetualTimer(threading._Timer): AttributeError: 'module' object has no attribute '_Timer'

This can be fixed by changing the word _Timer to Timer in process/, since Python3.3 uses threading.Timer as the class reference as opposed to threading._Timer in Python3.2.

Comments (5)

  1. Log in to comment