[Python 3]: Workaround epydoc exceptions hack, since epydoc does not work on Python 3.

This commit is contained in:
Dorian 2013-10-24 20:00:36 -04:00
parent 2c538bd5fe
commit 387f243c1d
1 changed files with 10 additions and 6 deletions

View File

@ -88,6 +88,10 @@ from paramiko.hostkeys import HostKeys
from paramiko.config import SSHConfig from paramiko.config import SSHConfig
from paramiko.proxy import ProxyCommand from paramiko.proxy import ProxyCommand
import six
if not six.PY3:
# Skipping port to Python 3 since, Epydoc has not been ported to Python 3.
# fix module names for epydoc # fix module names for epydoc
for c in locals().values(): for c in locals().values():
if issubclass(type(c), type) or type(c).__name__ == 'classobj': if issubclass(type(c), type) or type(c).__name__ == 'classobj':