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