diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-08-14 08:26:44 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-08-14 08:26:44 -0700 |
commit | 54cae69f027a8e1b8575e64360e27945d57afafc (patch) | |
tree | 8ad9388b5e707d8d87e0fb87c9634fb43a638627 | |
parent | d62f11d7e149bf8406974093e5254200471d2745 (diff) | |
parent | 58649612430391d9cc4d67ab39e6c8ec26ddf817 (diff) | |
download | numpy-54cae69f027a8e1b8575e64360e27945d57afafc.tar.gz |
Merge pull request #3617 from saschpe/master-postprocess-encoding
Explicitly set encoding to UTF-8 in postprocess.py
-rwxr-xr-x | doc/postprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/postprocess.py b/doc/postprocess.py index f0ca22cd5..257f84806 100755 --- a/doc/postprocess.py +++ b/doc/postprocess.py @@ -23,7 +23,7 @@ def main(): p.error('unknown mode %s' % mode) for fn in args: - f = open(fn, 'r') + f = open(fn, 'r', encoding="utf-8") try: if mode == 'html': lines = process_html(fn, f.readlines()) @@ -32,7 +32,7 @@ def main(): finally: f.close() - f = open(fn, 'w') + f = open(fn, 'w', encoding="utf-8") f.write("".join(lines)) f.close() |