Mercurial > hg
diff i18n/polib.py @ 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 | 4c50552fc9bc |
children | e40430fb787b |
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)