Changeset 83fa028 in trunk for src/allmydata/util/jsonbytes.py
- Timestamp:
- 2023-11-16T18:53:51Z (17 months ago)
- Branches:
- master
- Children:
- 7b680b3
- Parents:
- 3ddfb92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/util/jsonbytes.py ¶
r3ddfb92 r83fa028 62 62 A JSON encoder than can also encode UTF-8 encoded strings. 63 63 """ 64 def default(self, o): 65 return bytes_to_unicode(False, o) 66 64 67 def encode(self, o, **kwargs): 65 68 return json.JSONEncoder.encode( … … 78 81 bytes are quoted. 79 82 """ 83 def default(self, o): 84 return bytes_to_unicode(True, o) 85 80 86 def encode(self, o, **kwargs): 81 87 return json.JSONEncoder.encode(
Note: See TracChangeset
for help on using the changeset viewer.