From 0c04f5c9a9b8d37668425518c74275815eea25b1 Mon Sep 17 00:00:00 2001 From: James Fargher Date: Thu, 19 Apr 2012 19:52:22 +1200 Subject: [PATCH] Change from print to logging --- trueskill.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trueskill.py b/trueskill.py index 3070bb7..bb13ab7 100644 --- a/trueskill.py +++ b/trueskill.py @@ -28,6 +28,7 @@ print("requires Python 2.6 or higher") sys.exit(1) +import logging from math import sqrt @@ -305,7 +306,7 @@ def SetParameters(beta=None, epsilon=None, draw_probability=None, EPSILON = DrawMargin(draw_probability, BETA) else: EPSILON = epsilon - print("EPSILON %f" % EPSILON) + logging.info("EPSILON %f" % EPSILON) if gamma is None: GAMMA = INITIAL_SIGMA / 100.0 else: