mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Whitespace fix
This commit is contained in:
parent
154f1fe1ae
commit
3c1bb402bc
@ -147,8 +147,8 @@ class Serial(object):
|
|||||||
# This is msgpack Extended types numbered 78
|
# This is msgpack Extended types numbered 78
|
||||||
def default(obj):
|
def default(obj):
|
||||||
return msgpack.ExtType(78, obj)
|
return msgpack.ExtType(78, obj)
|
||||||
|
|
||||||
def dt_encode(obj):
|
def dt_encode(obj):
|
||||||
datetime_str = obj.strftime("%Y%m%dT%H:%M:%S.%f")
|
datetime_str = obj.strftime("%Y%m%dT%H:%M:%S.%f")
|
||||||
return msgpack.packb(datetime_str, default=default)
|
return msgpack.packb(datetime_str, default=default)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user