Create cmfile.py

This commit is contained in:
tianyu 2015-08-16 21:40:10 +08:00
parent a358f1c938
commit 3042498a0e
1 changed files with 15 additions and 0 deletions

15
net/cm/cmfile.py Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env python3
__author__ = 'ty'
import json
class CMFile:
url = ""
sha1 = ""
def __init__(self):
pass
def json(self):
return json.dumps(self, default=lambda o: o.__dict__, ensure_ascii=False, sort_keys=True)