Skip to content

Commit d171ce1

Browse files
author
Brian Xu
committed
reformat
1 parent 4d73e43 commit d171ce1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

capnp/lib/capnp.pyx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,10 +1056,6 @@ cdef _to_dict(msg, bint verbose, bint ordered, bint encode_bytes_as_base64=False
10561056
if msg_type is _DynamicEnum:
10571057
return str(msg)
10581058

1059-
if encode_bytes_as_base64:
1060-
if msg_type is bytes:
1061-
# encode the message as base64 and return utf-8 string
1062-
10631059
if encode_bytes_as_base64 and msg_type is bytes:
10641060
# encode the message as base64 and return utf-8 string
10651061
return base64.b64encode(msg).decode('utf-8')

0 commit comments

Comments
 (0)