changeset 441998315d53 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=441998315d53 description: minor code improvement
diffstat:
src/common/connection.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r 8bd293727c0e -r 441998315d53 src/common/connection.py --- a/src/common/connection.py Sun Nov 03 17:57:12 2013 +0100 +++ b/src/common/connection.py Fri Dec 06 21:27:53 2013 +0100 @@ -1383,8 +1383,7 @@ errnum = con.Connection.ssl_errnum except AttributeError: errnum = [] # we don't have an errnum - i = 0 - for er in errnum: + for i, er in enumerate(errnum): if er > 0 and str(er) not in gajim.config.get_per('accounts', self.name, 'ignore_ssl_errors').split(): text = _('The authenticity of the %s certificate could be '