diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-11 17:46:04 +0300 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-11 17:50:20 +0300 |
commit | 8bb73c9fd3555deb83f01e1d18fa10c563202f78 (patch) | |
tree | affde9d2c1580e38138c860cd298b384cfde5b96 /setup.py | |
parent | 689b9ffd047b12b0fe30e2b25bbc3f50f4756785 (diff) |
Simplify open() call by removing default mode
The open() function opens files in read-only text mode by default. Drop
the mode argument to be slightly simpler and more idiomatic.
https://docs.python.org/3/library/functions.html#open
> The default mode is 'r' (open for reading text, synonym of 'rt').
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -132,7 +132,7 @@ else: domain + '.js')) for js_file, (locale, po_file) in zip(js_files, po_files): - with open(po_file, 'r') as infile: + with open(po_file) as infile: catalog = read_po(infile, locale) if catalog.fuzzy and not self.use_fuzzy: |