fgimian / paramiko-expect

A Python expect-like extension for the Paramiko SSH library which also supports tailing logs.
MIT License
205 stars 78 forks source link

Fix expect() to properly raise exception #99

Open vajdera opened 4 months ago

vajdera commented 4 months ago

expect() description states the in case of timeout an exception is raised however it never is. This commit adds raising exception to 'expect()' and uses new TimeoutError (see PEP 3151).

forose commented 3 months ago

yes,I modified the py in myself env like this