瀏覽代碼

Merge pull request #83 from legoktm/patch-1

Force opening README.rst as utf-8 in Py3k
tags/v0.4
Ben Kurtovic 10 年之前
父節點
當前提交
32d8bc507b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      setup.py

+ 1
- 1
setup.py 查看文件

@@ -32,7 +32,7 @@ from setuptools import setup, find_packages, Extension
from mwparserfromhell import __version__
from mwparserfromhell.compat import py26, py3k

with open("README.rst") as fp:
with open("README.rst", **{'encoding':'utf-8'} if py3k else {}) as fp:
long_docs = fp.read()

tokenizer = Extension("mwparserfromhell.parser._tokenizer",


Loading…
取消
儲存