Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
mohabusama committed Apr 9, 2019
1 parent f0b508a commit ca27f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zmon_worker_monitor/zmon_worker/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def default(self, o):
'null'
>>> JsonDataEncoder().encode(numpy.Infinity)
'"Infinity"'
>>> JsonDataEncoder().encode(b'spa\xc3\x9f')
'"spaß"'
>>> JsonDataEncoder().encode(b'bytes')
'"bytes"'
'''
if isinstance(o, (datetime.datetime, datetime.date, datetime.time)):
return o.isoformat()
Expand Down

0 comments on commit ca27f06

Please sign in to comment.