Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. def to_json(self, value_format=None):
  2.     value_format = b'{{"{0}":{{"System":"{1}","Date":"{2}",' '"Value":"{3}"}}}}'
  3.     value_format = value_format.format(self.check, self.mid, self.currenttime, self.value)
  4.     return value_format
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement