Fix one byte conversion error

This commit is contained in:
jar3b 2016-04-22 13:30:13 +03:00
parent eed8eac532
commit ebeed0db22

View File

@ -602,7 +602,7 @@ class SphinxClient:
# filters # filters
req.append(pack('>L', len(self._filters))) req.append(pack('>L', len(self._filters)))
for f in 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'] filtertype = f['type']
req.append(pack('>L', filtertype)) req.append(pack('>L', filtertype))
if filtertype == SPH_FILTER_VALUES: if filtertype == SPH_FILTER_VALUES: