Skip to content

Commit

Permalink
chore(util): json_decode comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dcai committed Dec 14, 2019
1 parent 74e7bbb commit e9d04ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ def create_access_key():


def json_decode(text):
""" python data to string """
""" Takes a JSON encoded string and converts it into a ptyhon variable """
return tornado.escape.json_decode(text)


def json_encode(obj):
""" Serialize obj to a JSON formatted str """
""" serialize python value to str """
return tornado.escape.json_encode(obj)

0 comments on commit e9d04ca

Please sign in to comment.