Hello,

I wonder where and how exactly you disable deprecation warnings.  I've 
tried:

On top of app_cfg.py and top of myapp/tests/__init__.py

> import warnings
> warnings.filterwarnings(action='ignore', category=DeprecationWarning)

 
and the same places but with

> def fxn():
>     warnings.warn("deprecated", DeprecationWarning)
> with warnings.catch_warnings():
>     warnings.simplefilter("ignore")
>     fxn()


Thanks
On Tuesday, July 24, 2012 7:27:15 AM UTC-5, Craig Small wrote:
>
> Hi, 
>   I'm getting these warnings in TG2.2rc2 now, the tests are passing so 
> things are generally happy, but should I be getting these at all? 
>
> Sounds like Pylons is not been updated to me, anyone else getting this 
> and how to fix it? 
>
> /home/virtualenv/tg2env/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py:178:
>  
> DeprecationWarning: decode_param_names is deprecated and w 
> ill not be supported starting with WebOb 1.2 
>   decode_param_names=req_options['decode_param_names']) 
> /home/virtualenv/tg2env/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/util.py:194:
>  
> DeprecationWarning: Raise HTTP exceptions directly 
>   raise exc.exception 
>
> -- 
> Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au 
> Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org 
> GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/turbogears/-/awLeP9HhWJgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to