[yum-git] output.py
Jeremy Katz
katzj at linux.duke.edu
Thu Mar 6 22:07:21 UTC 2008
output.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit efcdd42ad18fdaa03277f0b46b61a6620d1ad79f
Author: Jeremy Katz <katzj at redhat.com>
Date: Thu Mar 6 17:04:24 2008 -0500
Make the responses translatable too (#436386)
diff --git a/output.py b/output.py
index 21de067..da2db47 100644
--- a/output.py
+++ b/output.py
@@ -342,10 +342,10 @@ class YumOutput:
except:
choice = ''
choice = choice.lower()
- if len(choice) == 0 or choice in ['y', 'n', 'yes', 'no']:
+ if len(choice) == 0 or choice in [_('y'), _('n'), _('yes'), _('no')]:
break
- if len(choice) == 0 or choice not in ['y', 'yes']:
+ if len(choice) == 0 or choice not in [_('y'), _('yes')]:
return False
else:
return True
More information about the Yum-cvs-commits
mailing list