Subprocess.fit should quote entries instead of just encoding them
Entries need to be sent as a single token; this means that space-separated
lists, which are now supported by the IntSubprocess and FloatSubprocess
constructors, need to be quoted
@@ -47,7 +47,7 @@ class Subprocess(BaseANN):
def fit(self, X):
for entry in X:
- self.__write(self._encoder(entry))
+ self.__write(Subprocess.__quote(self._encoder(entry)))
assert(self.__line()[0] == "ok")
self.__write("")
assert(self.__line()[0] == "ok")
