ParallelSSH / ssh2-python

Python bindings for libssh2 C library.
https://parallel-ssh.org
GNU Lesser General Public License v2.1
228 stars 70 forks source link

Python 3.12 support #193

Open thewchan opened 9 months ago

thewchan commented 9 months ago

Python API in 3.12 seems to have changed particularly:

AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

During build.

JacobCallahan commented 9 months ago

@thewchan here's the relevant section from the release notes.

https://docs.python.org/3.12/whatsnew/3.12.html#configparser

configparser Several names deprecated in the configparser way back in 3.2 have been removed per gh-89336:

configparser.ParsingError no longer has a filename attribute or argument. Use the source attribute and argument instead.

configparser no longer has a SafeConfigParser class. Use the shorter ConfigParser name instead.

configparser.ConfigParser no longer has a readfp method. Use read_file() instead.