diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-04-05 07:38:57 -0700 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-04-05 07:38:57 -0700 |
| commit | 259ea9fed918cbbcf40e0596c8d2f8d3544996fb (patch) | |
| tree | 412390713c586151a8d99abf191c83910283bad1 /scripts | |
| parent | 49b98ad5a16ea8d6376cb66173d88b6d8cb2f822 (diff) | |
| parent | 275df44b5798ddf09485d7ad503a212636ddf340 (diff) | |
| download | psutil-259ea9fed918cbbcf40e0596c8d2f8d3544996fb.tar.gz | |
merge from master
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/.git-pre-commit | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/internal/.git-pre-commit b/scripts/internal/.git-pre-commit index c3c605e0..c7d7d1ff 100755 --- a/scripts/internal/.git-pre-commit +++ b/scripts/internal/.git-pre-commit @@ -79,8 +79,9 @@ def main(): os.path.exists(x)] lineno = 0 + kw = {'encoding': 'utf8'} if sys.version_info[0] == 3 else {} for path in py_files: - with open(path) as f: + with open(path, 'rt', **kw) as f: for line in f: lineno += 1 # space at end of line |
