aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/language
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-06-06 13:31:44 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-06-06 13:31:44 -0700
commit6447c8ae2256b0e074a04307a748d61f990e98d4 (patch)
tree4a8a236e0ed93cb681b701c55778e4ab93e0eaab /pathod/language
parentc973fd881fc4cabb401fdb255b2486b80499442c (diff)
downloadmitmproxy-6447c8ae2256b0e074a04307a748d61f990e98d4.tar.gz
mitmproxy-6447c8ae2256b0e074a04307a748d61f990e98d4.tar.bz2
mitmproxy-6447c8ae2256b0e074a04307a748d61f990e98d4.zip
fix .freeze(), improve tests
Diffstat (limited to 'pathod/language')
-rw-r--r--pathod/language/base.py2
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())))