mirror of
https://github.com/google/mozc-devices.git
synced 2025-11-08 16:53:28 +03:00
Specify encoding in reading README.rst from setup.py.
Change-Id: I678adce052fc3eacef3b4f6198c4e1722b24e9f0
This commit is contained in:
@@ -15,11 +15,13 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import codecs
|
||||
import os
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
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()
|
||||
|
||||
setup(
|
||||
|
||||
Reference in New Issue
Block a user