polib: remove unnecessary comparisons with True
Submitted to upstream repository as changeset f11e0b1b37b0.
--- 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)