1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/57999f37bed1/ Changeset: 57999f37bed1 User: dannon Date: 2014-09-17 21:05:33+00:00 Summary: Be more explicit and warn about the deprecation of to_json_string/from_json_string. Affected #: 1 file diff -r 24493820b3e30418f50b2560cc876b7406c2c4ff -r 57999f37bed18665b79779ce6fb4871299922688 lib/galaxy/util/json.py --- a/lib/galaxy/util/json.py +++ b/lib/galaxy/util/json.py @@ -7,14 +7,22 @@ import random import string -to_json_string = json.dumps # deprecated -from_json_string = json.loads # deprecated dumps = json.dumps loads = json.loads log = logging.getLogger( __name__ ) +def to_json_string(*args, **kwargs): + log.warning("Using deprecated function to_json_string.") + return json.dumps(*args, **kwargs) + + +def from_json_string(*args, **kwargs): + log.warning("Using deprecated function from_json_string.") + return json.loads(*args, **kwargs) + + def json_fix( val ): if isinstance( val, list ): return [ json_fix( v ) for v in val ] Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.