Skip to content

Commit

Permalink
clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Nov 1, 2015
1 parent 95b24e5 commit 8f28263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvviewer/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def encode(obj):
bool, dict, list) are directly converted to their JS counterpart. Custom,
user-defined objects must have a to_js method defined on them that converts
the object to a string. Note that the object strings are not escaped, so
the to_js methods are allowed to arbitrary expressions themselves.
the to_js methods are allowed to be arbitrary JS expressions themselves.
"""
if hasattr(obj, 'to_js'):
return obj.to_js()
Expand Down

0 comments on commit 8f28263

Please sign in to comment.