diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-04 20:50:42 +0530 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-06 11:51:36 -0700 |
commit | 07a0d6dcc20dcf201d242ba2d8e4f14e5254b49f (patch) | |
tree | 8946a405050b8766241246c4784beca3070e46c8 /pathod | |
parent | ced6fb4cf9ae404d389bc6adad29f4f814fecd71 (diff) | |
download | mitmproxy-07a0d6dcc20dcf201d242ba2d8e4f14e5254b49f.tar.gz mitmproxy-07a0d6dcc20dcf201d242ba2d8e4f14e5254b49f.tar.bz2 mitmproxy-07a0d6dcc20dcf201d242ba2d8e4f14e5254b49f.zip |
Py3: Return bytes from _Component class
Diffstat (limited to 'pathod')
-rw-r--r-- | pathod/language/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pathod/language/base.py b/pathod/language/base.py index 1369a3c7..228bfe3b 100644 --- a/pathod/language/base.py +++ b/pathod/language/base.py @@ -261,7 +261,7 @@ class _Component(Token): """ A value component of the primary specification of an message. - Components produce byte values desribe the bytes of the message. + Components produce byte values describing the bytes of the message. """ def values(self, settings): # pragma: no cover @@ -272,9 +272,9 @@ class _Component(Token): def string(self, settings=None): """ - A string representation of the object. + A bytestring representation of the object. """ - return "".join(i[:] for i in self.values(settings or {})) + return b"".join(i[:] for i in self.values(settings or {})) class KeyValue(_Component): |