Mercurial > hg > toolbox
comparison toolbox/util.py @ 10:2fc286e008f5
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 13:05:51 -0800 |
parents | b0942f44413f |
children |
comparison
equal
deleted
inserted
replaced
9:abf99a03a6c6 | 10:2fc286e008f5 |
---|---|
54 testjson['date'] = datetime.now() | 54 testjson['date'] = datetime.now() |
55 | 55 |
56 # test set encoding | 56 # test set encoding |
57 testjson['set'] = set([1,2,3,2]) | 57 testjson['set'] = set([1,2,3,2]) |
58 | 58 |
59 print json.dumps(testjson, cls=JSONEncoder) | 59 print(json.dumps(testjson, cls=JSONEncoder)) |