Skip to content
Snippets Groups Projects
Commit b8f41196 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Added mark_begin/mark_end around python version sending.

parent 9c77c9b8
No related branches found
No related tags found
No related merge requests found
......@@ -775,9 +775,11 @@ class Encoder(Codec):
self.writer = writer
self.version = version
if self.version == DEFAULT_VERSION:
self.writer.mark_begin(None, None)
self.encode_type(i_VERSION)
with length_encoder(self) as e:
e.encode_string(version)
self.writer.mark_end(None, None)
elif self.version == None:
pass # Don't send version on a length encoder
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment