ncouture / MockSSH

Mock an SSH server and define all commands it supports (Python, Twisted)
Other
125 stars 23 forks source link

Python3 continued #24

Open rapgro opened 4 years ago

rapgro commented 4 years ago

While build with python 3 and execution of tests:

TypeError: Class advice impossible in Python3. Use the @implementer class decorator instead.

Also, I'll send a pull request to support python3 in all the print commands around in sources.

rapgro commented 4 years ago

see #16 and #25

rapgro commented 4 years ago

The TypeError is a bug in zope:

…
  File "/usr/lib64/python3.9/site-packages/zope/interface/declarations.py", line 706, in implements
    raise TypeError(_ADVICE_ERROR % 'implementer')
TypeError: Class advice impossible in Python3.  Use the @implementer class decorator instead.