mirror of
https://github.com/google/mozc-devices.git
synced 2025-11-08 16:53:28 +03:00
Merge pull request #9 from google/use-codecs
Specify encoding in reading README.rst from setup.py.
This commit is contained in:
@@ -15,11 +15,13 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import codecs
|
||||||
import os
|
import os
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
def read_file(name):
|
def read_file(name):
|
||||||
with open(os.path.join(os.path.dirname(__file__), name), 'r') as f:
|
with codecs.open(
|
||||||
|
os.path.join(os.path.dirname(__file__), name), 'r', 'utf-8') as f:
|
||||||
return f.read().strip()
|
return f.read().strip()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
|||||||
Reference in New Issue
Block a user