From 9b0799f1948c689b91c05b29b909197bc3232219 Mon Sep 17 00:00:00 2001 From: Ghislain Rodrigues Date: Sat, 8 Mar 2014 23:00:36 +0000 Subject: [PATCH] variable renamed to avoid conflicts --- player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player.py b/player.py index 79a631a..aae1d97 100644 --- a/player.py +++ b/player.py @@ -38,7 +38,7 @@ def connect(self): return True #~ Read the login and the password from stdin - def _readLoginAndPassword(self, checkLogin, confirmPassword): + def _readLoginAndPassword(self, checkLogin, askConfirmPassword): while self._login is None or self._login == '': self._login = utils.read(_('LOGIN_PROMPT')) @@ -50,7 +50,7 @@ def _readLoginAndPassword(self, checkLogin, confirmPassword): while (self._password is None or self._password == ''): self._password = getpass.getpass(_('PASSWORD_PROMPT')) - if confirmPassword: + if askConfirmPassword is True: confirmPassword = getpass.getpass(_('CONFIRM_PASSWORD_PROMPT')) else: confirmPassword = self._password