提交 b2faec3c authored 作者: Lee Zamparo's avatar Lee Zamparo

Replaced calls to open() with codecs.open() to read non-ASCII characters in…

Replaced calls to open() with codecs.open() to read non-ASCII characters in NEWS.txt, DESCRIPTION.txt
上级 555ca75c
......@@ -7,6 +7,7 @@
import os
import sys
import subprocess
import codecs
from fnmatch import fnmatchcase
from distutils.util import convert_path
try:
......@@ -43,8 +44,8 @@ MAINTAINER = "LISA laboratory, University of Montreal"
MAINTAINER_EMAIL = "theano-dev@googlegroups.com"
DESCRIPTION = ('Optimizing compiler for evaluating mathematical ' +
'expressions on CPUs and GPUs.')
LONG_DESCRIPTION = (open("DESCRIPTION.txt").read() + "\n\n" +
open("NEWS.txt").read())
LONG_DESCRIPTION = (codecs.open("DESCRIPTION.txt",encoding='utf-8').read() + "\n\n" +
codecs.open("NEWS.txt",encoding='utf-8').read())
URL = "http://deeplearning.net/software/theano/"
DOWNLOAD_URL = ""
LICENSE = 'BSD'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论