diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-06-06 13:31:44 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-06 13:31:44 -0700 |
commit | 6447c8ae2256b0e074a04307a748d61f990e98d4 (patch) | |
tree | 4a8a236e0ed93cb681b701c55778e4ab93e0eaab /pathod/language/base.py | |
parent | c973fd881fc4cabb401fdb255b2486b80499442c (diff) | |
download | mitmproxy-6447c8ae2256b0e074a04307a748d61f990e98d4.tar.gz mitmproxy-6447c8ae2256b0e074a04307a748d61f990e98d4.tar.bz2 mitmproxy-6447c8ae2256b0e074a04307a748d61f990e98d4.zip |
fix .freeze(), improve tests
Diffstat (limited to 'pathod/language/base.py')
-rw-r--r-- | pathod/language/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathod/language/base.py b/pathod/language/base.py index bc389792..6cafdebd 100644 --- a/pathod/language/base.py +++ b/pathod/language/base.py @@ -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()))) |