* Tasmanian Devil <tasm.de...@googlemail.com> [101019 08:33]: > Hello, list! > > Since the upgrade to Python 2.6 sysutils/tentakel shows these warnings > above the usual output: > > > /usr/local/lib/python2.6/site-packages/lekatnet/config.py:55: > DeprecationWarning: The popen2 module is deprecated. Use the > subprocess module. > import popen2 > /usr/local/lib/python2.6/site-packages/lekatnet/plugins/rsh.py:29: > DeprecationWarning: the md5 module is deprecated; use hashlib instead > import md5 > > > So I searched a bit on the web and found a way to suppress these > warnings. I don't know anything about Python unfortunately, so my > patch might not be correct or the location where I add the code > (config.py) might be wrong, but so far it works just fine for me. > > Tas. > > > Put this into sysutils/tentakel/patches/patch-py_lekatnet_config_py > > > --- py/lekatnet/config.py.orig Sun Feb 8 13:16:38 2009 > +++ py/lekatnet/config.py Tue Oct 19 13:57:27 2010 > @@ -45,6 +45,9 @@ > > """ > > +import warnings > +warnings.simplefilter("ignore", DeprecationWarning) > + > import error > import re > import os >
I recommend you submit your patch to the tentakel project. We _could_ put it in the ports tree, but upstream is better in my opinion. Best regards, jim@