[Twisted-Python] TypeError: Class advice impossible in Python3.

Barry Warsaw barry at python.org
Wed Jan 9 16:53:55 EST 2013


On Jan 09, 2013, at 01:06 PM, ABHISHEK BHAT wrote:

>  File
>"/home/abhat1/python3.3/lib/python3.3/site-packages/twisted/cred/credentials.py",
>line 115, in DigestedCredentials
>
>   
>implements(IUsernameHashedPassword, IUsernameDigestHash)

FWIW, you should use the @implementer class decorator instead.  This will work
in Python 3, 2.6, and 2.7.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20130109/d9a3aaaf/attachment.pgp 


More information about the Twisted-Python mailing list