I am using Paramiko in my python code (for sftp). Everything works fine except that everytime I import or call a paramiko function. This warning would show up:
C
To filter only a specific warning:
with warnings.catch_warnings(): warnings.simplefilter('ignore', SpecificWarningObject) #do something that raises a Warning