Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
13029:f930032aa6d5 | 13030:8ea51e9e7031 |
---|---|
103 ... 'NEW: ', mo_file._encode(new.msgstr) | 103 ... 'NEW: ', mo_file._encode(new.msgstr) |
104 ... print new.msgstr | 104 ... print new.msgstr |
105 ... finally: | 105 ... finally: |
106 ... os.unlink(tmpf) | 106 ... os.unlink(tmpf) |
107 """ | 107 """ |
108 if kwargs.get('autodetect_encoding', True) == True: | 108 if kwargs.get('autodetect_encoding', True): |
109 enc = detect_encoding(fpath) | 109 enc = detect_encoding(fpath) |
110 else: | 110 else: |
111 enc = kwargs.get('encoding', default_encoding) | 111 enc = kwargs.get('encoding', default_encoding) |
112 check_for_duplicates = kwargs.get('check_for_duplicates', False) | 112 check_for_duplicates = kwargs.get('check_for_duplicates', False) |
113 parser = _POFileParser( | 113 parser = _POFileParser( |
157 ... old.msgstr | 157 ... old.msgstr |
158 ... new.msgstr | 158 ... new.msgstr |
159 ... finally: | 159 ... finally: |
160 ... os.unlink(tmpf) | 160 ... os.unlink(tmpf) |
161 """ | 161 """ |
162 if kwargs.get('autodetect_encoding', True) == True: | 162 if kwargs.get('autodetect_encoding', True): |
163 enc = detect_encoding(fpath, True) | 163 enc = detect_encoding(fpath, True) |
164 else: | 164 else: |
165 enc = kwargs.get('encoding', default_encoding) | 165 enc = kwargs.get('encoding', default_encoding) |
166 parser = _MOFileParser( | 166 parser = _MOFileParser( |
167 fpath, | 167 fpath, |