From ef2fc7750f49a726454a533c38b146c8dfc30583 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Sun, 4 Sep 2011 18:24:26 +0000 Subject: [PATCH] hints: allow hints to be stringified Signed-off-by: Adam D. Barratt --- hints.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hints.py b/hints.py index 2629ef6..e893ce2 100644 --- a/hints.py +++ b/hints.py @@ -37,6 +37,7 @@ class HintCollection: class Hint: def __init__(self, hint, user): + self._hint = hint self._user = user self._active = True self._days = None @@ -58,6 +59,9 @@ class Hint: def set_active(self, active): self._active = active + def __str__(self): + return self._hint + @property def type(self): return self._type