polib: remove unnecessary comparisons with True
authorMartin Geisler <mg@aragost.com>
Mon, 22 Nov 2010 17:57:11 +0100
changeset 13030 8ea51e9e7031
parent 13029 f930032aa6d5
child 13031 3da456d0c885
polib: remove unnecessary comparisons with True Submitted to upstream repository as changeset f11e0b1b37b0.
i18n/polib.py
--- 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)