fix .freeze(), improve tests

This commit is contained in:
Maximilian Hils
2016-06-06 13:31:44 -07:00
parent c973fd881f
commit 6447c8ae22
3 changed files with 11 additions and 6 deletions

View File

@@ -578,4 +578,4 @@ class NestedMessage(Token):
def freeze(self, settings):
f = self.parsed.freeze(settings).spec()
return self.__class__(TokValueLiteral(strutils.bytes_to_escaped_str(f)))
return self.__class__(TokValueLiteral(strutils.bytes_to_escaped_str(f.encode())))