Mercurial > kallithea
diff scripts/update-copyrights.py @ 6860:665dfa112f2c
py3: replace "file" with "open"
author | Lars Kruse <devel@sumpfralle.de> |
---|---|
date | Fri, 25 Aug 2017 14:30:57 +0200 |
parents | 5dde581f703f |
children | 710b2eb8cc37 |
line wrap: on
line diff
--- a/scripts/update-copyrights.py Thu Aug 17 21:46:10 2017 +0200 +++ b/scripts/update-copyrights.py Fri Aug 25 14:30:57 2017 +0200 @@ -197,10 +197,10 @@ for name, years in name_years.items()] l.sort(key=sortkey) - with file(filename) as f: + with open(filename) as f: pre, post = re.split(split_re, f.read()) - with file(filename, 'w') as f: + with open(filename, 'w') as f: f.write(pre + ''.join(format_f(years, name) for years, name in l) + post)