Python warnings in 2.6 needed, but then again, not!

home | blog | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts


- Careful Chrome users, this search box might be "Not secure"


To ignore warnings, try this:

python -Wignore ./script.py

If you can't do that, do this before the failing import or code use this (reset after import or code use):

import warnings
warnings.simplefilter("ignore",DeprecationWarning )
import paramiko
warnings.resetwarnings()

I will probably use 2.6 for a while yet, so this note will probably come in handy :-)


If your issues are "with" older 2.5 installs - top your script off "with":

from __future__ import with_statement



[æ]