提交 2ae75a81 authored 作者: Frederic Bastien's avatar Frederic Bastien

flake8

上级 341ac436
...@@ -21,14 +21,6 @@ which may be rendered with Sphinx. A rendered version is ...@@ -21,14 +21,6 @@ which may be rendered with Sphinx. A rendered version is
maintained at http://www.deeplearning.net/software/theano/library/ maintained at http://www.deeplearning.net/software/theano/library/
""" """
import sys
if sys.platform == 'win32' and sys.version_info[0:2] == (3, 5):
raise RuntimeError(
"Theano do not support Python 3.5 on Windows. Use Python 2.7 or 3.4.")
from __future__ import absolute_import, print_function, division from __future__ import absolute_import, print_function, division
__docformat__ = "restructuredtext en" __docformat__ = "restructuredtext en"
...@@ -37,6 +29,12 @@ __docformat__ = "restructuredtext en" ...@@ -37,6 +29,12 @@ __docformat__ = "restructuredtext en"
# theano code, since this code may want to log some messages. # theano code, since this code may want to log some messages.
import logging import logging
import sys
if sys.platform == 'win32' and sys.version_info[0:2] == (3, 5):
raise RuntimeError(
"Theano do not support Python 3.5 on Windows. Use Python 2.7 or 3.4.")
theano_logger = logging.getLogger("theano") theano_logger = logging.getLogger("theano")
logging_default_handler = logging.StreamHandler() logging_default_handler = logging.StreamHandler()
logging_default_formatter = logging.Formatter( logging_default_formatter = logging.Formatter(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论