7013: strip underscores from accept/reject labels

svn: r23077
This commit is contained in:
Vassilii Khachaturov
2013-09-10 12:41:05 +00:00
parent 52d8a77864
commit ff89425e50
2 changed files with 17 additions and 4 deletions

View File

@@ -136,6 +136,8 @@ class User(user.User):
@returns: the user's answer to the question
@rtype: bool
"""
accept_label = accept_label.replace("_", "")
reject_label = reject_label.replace("_", "")
text = "{t}\n{m} ([{y}]/{n}): ".format(
t = title,
m = message,