From ebeed0db220feba9f1e75ee8862e4d640d64d84c Mon Sep 17 00:00:00 2001 From: jar3b Date: Fri, 22 Apr 2016 13:30:13 +0300 Subject: [PATCH] Fix one byte conversion error --- sphinxapi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinxapi/__init__.py b/sphinxapi/__init__.py index 3be9023..602c841 100644 --- a/sphinxapi/__init__.py +++ b/sphinxapi/__init__.py @@ -602,7 +602,7 @@ class SphinxClient: # filters req.append(pack('>L', len(self._filters))) for f in self._filters: - req.append(pack('>L', len(f['attr'])) + f['attr']) + req.append(pack('>L', len(f['attr'])) + f['attr'].encode()) filtertype = f['type'] req.append(pack('>L', filtertype)) if filtertype == SPH_FILTER_VALUES: