Skip to content

Commit b27af5a

Browse files
committed
setup: Use utf-8 encoding while reading readme file
1 parent c10b325 commit b27af5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4+
import codecs
45
import os
56
import unittest
67

@@ -10,7 +11,7 @@
1011
with open(os.path.join(this_directory, 'requirements.txt')) as f:
1112
install_requirements = f.read().splitlines()
1213
this_directory = os.path.abspath(os.path.dirname(__file__))
13-
with open(os.path.join(this_directory, 'README.rst')) as f:
14+
with codecs.open(os.path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
1415
long_description = f.read()
1516

1617

0 commit comments

Comments
 (0)