Mercurial > hg-stable
changeset 13030:8ea51e9e7031
polib: remove unnecessary comparisons with True
Submitted to upstream repository as changeset f11e0b1b37b0.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 22 Nov 2010 17:57:11 +0100 |
parents | f930032aa6d5 |
children | 3da456d0c885 |
files | i18n/polib.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/i18n/polib.py Sun Nov 21 22:00:51 2010 -0500 +++ b/i18n/polib.py Mon Nov 22 17:57:11 2010 +0100 @@ -105,7 +105,7 @@ ... finally: ... os.unlink(tmpf) """ - if kwargs.get('autodetect_encoding', True) == True: + if kwargs.get('autodetect_encoding', True): enc = detect_encoding(fpath) else: enc = kwargs.get('encoding', default_encoding) @@ -159,7 +159,7 @@ ... finally: ... os.unlink(tmpf) """ - if kwargs.get('autodetect_encoding', True) == True: + if kwargs.get('autodetect_encoding', True): enc = detect_encoding(fpath, True) else: enc = kwargs.get('encoding', default_encoding)