From 07a0d6dcc20dcf201d242ba2d8e4f14e5254b49f Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Sat, 4 Jun 2016 20:50:42 +0530 Subject: [PATCH] Py3: Return bytes from _Component class --- pathod/language/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pathod/language/base.py b/pathod/language/base.py index 1369a3c79..228bfe3bf 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):