Make sure path is string (resolves #3546)

This commit is contained in:
Ines Montani 2019-04-08 12:53:41 +02:00
parent d0f5e015cb
commit 6ae3b5699e

View File

@ -113,7 +113,7 @@ class GoldCorpus(object):
self.write_msgpack(self.tmp_dir / "dev", dev, limit=self.limit)
def __del__(self):
shutil.rmtree(self.tmp_dir)
shutil.rmtree(path2str(self.tmp_dir))
@staticmethod
def write_msgpack(directory, doc_tuples, limit=0):