revert changes to runner.print
from __future__ import print_function
-import functools
-
-print = functools.partial(print, flush=True) # noqa
+ __true_print = print # noqa
import argparse
import datetime
@@ -16,6 +14,12 @@ import sys
import threading
import time
+
+def print(*args, **kwargs): # noqa
+ __true_print(*args, **kwargs)
+ sys.stdout.flush()
+
+
from ann_benchmarks.datasets import get_dataset, DATASETS
from ann_benchmarks.algorithms.definitions import (Definition,
instantiate_algorithm,
