------------------------------------------------------------
revno: 3458
committer: Bruno Chareyre <[email protected]>
timestamp: Thu 2014-10-09 22:32:40 +0200
message:
turn DeprecationWarning (not displayed) into UserWarning (displayed) since
the error messages where cryptic
modified:
py/utils.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to
https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/utils.py'
--- py/utils.py 2014-09-17 00:20:31 +0000
+++ py/utils.py 2014-10-09 20:32:40 +0000
@@ -751,7 +751,7 @@
def _deprecatedUtilsFunction(old,new):
"Wrapper for deprecated functions, example below."
import warnings
- warnings.warn('Function utils.%s is deprecated, use %s instead.'%(old,new),stacklevel=2,category=DeprecationWarning)
+ warnings.warn('Function utils.%s is deprecated, use %s instead.'%(old,new),stacklevel=2,category=UserWarning)
# example of _deprecatedUtilsFunction usage:
#
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp