logilab-common #75290 regression in support for Python 3 [validation pending]

logilab.common.decorators.monkeypatch() of logilab-common 0.56.1 was working correctly in Python 3. logilab.common.decorators.monkeypatch() of logilab-common 0.56.2 fails with Python 3 and breaks whole test suite:

Traceback (most recent call last):
 File "/var/tmp/portage/dev-python/logilab-common-0.56.2/temp/test-3.2/usr/bin/pytest", line 3, in <module>
   from logilab.common.pytest import run
 File "/var/tmp/portage/dev-python/logilab-common-0.56.2/temp/test-3.2/usr/lib64/python3.2/site-packages/logilab/common/pytest.py", line 124, in <module>
   from logilab.common import testlib, STD_BLACKLIST
 File "/var/tmp/portage/dev-python/logilab-common-0.56.2/temp/test-3.2/usr/lib64/python3.2/site-packages/logilab/common/testlib.py", line 346, in <module>
   @monkeypatch(unittest.TestSuite)
 File "/var/tmp/portage/dev-python/logilab-common-0.56.2/temp/test-3.2/usr/lib64/python3.2/site-packages/logilab/common/decorators.py", line 238, in decorator
   setattr(klass, name, types.MethodType(func, None, klass))
TypeError: method expected 2 arguments, got 3

reported in http://lists.logilab.org/pipermail/python-projects/2011-September/003066.html

priorityimportant
typebug
done in0.57.0
load left0.000
closed by#a5fc783ebbfb fix py3k compat (closes #75290)