Fixed a bug with bytes encoding error

This commit is contained in:
Fenil Gandhi 2018-02-19 09:40:12 +05:30
parent 93425d4b1a
commit 6bf250aa3e

View File

@ -28,7 +28,7 @@ class Column(col_bytes.Column):
class EncodingMixin:
def __init__(self, data, encoding_args):
self.encoding_args = encoding_args
super().__init__(data.encode(*self.encoding_args))
super().__init__(data.__str__().encode(*self.encoding_args))
def get_data(self):
data = super().get_data()