diff options
| author | DB Tsai <dbtsai@dbtsai.com> | 2015-10-26 09:55:07 -0700 |
|---|---|---|
| committer | DB Tsai <dbtsai@dbtsai.com> | 2015-10-26 09:55:07 -0700 |
| commit | 35bfaceec39136b4d4dc09b877a14829bc82b8a3 (patch) | |
| tree | a8b69585ffe6997b5f32fcaca1cca24b02955b2e | |
| parent | 2d600d3fc4a386af69d20fba433843b4df2b3c92 (diff) | |
| parent | d963d7cde7dfd91ea3df3f82f829a4464b380ef0 (diff) | |
| download | python-mimeparse-35bfaceec39136b4d4dc09b877a14829bc82b8a3.tar.gz | |
Merge pull request #5 from foolswood/readme_as_utf8
Open README as UTF-8
| -rwxr-xr-x | setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,12 +1,14 @@ #!/usr/bin/env python import os +import codecs import mimeparse from setuptools import setup def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() + path = os.path.join(os.path.dirname(__file__), fname) + return codecs.open(path, encoding='utf-8').read() setup( name="python-mimeparse", |
