提交 acc5ace2 authored 作者: slefrancois's avatar slefrancois

fix flake8 2.6 errors F405

上级 54738665
...@@ -145,4 +145,4 @@ except ImportError: ...@@ -145,4 +145,4 @@ except ImportError:
release_lock() release_lock()
from lazylinker_ext.lazylinker_ext import * # noqa from lazylinker_ext.lazylinker_ext import * # noqa
assert force_compile or (version == get_version()) assert force_compile or (version == get_version()) # noqa
...@@ -5,7 +5,8 @@ from theano.gof.type import Type ...@@ -5,7 +5,8 @@ from theano.gof.type import Type
from theano.gof import graph from theano.gof import graph
from theano.gof.graph import Variable, Apply from theano.gof.graph import Variable, Apply
from theano.gof.op import Op from theano.gof.op import Op
from theano.gof.opt import * # noqa from theano.gof.opt import (OpKeyOptimizer, PatternSub, NavigatorOptimizer,
TopoOptimizer, OpSub)
from theano.gof import destroyhandler from theano.gof import destroyhandler
from theano.gof.fg import FunctionGraph, InconsistencyError from theano.gof.fg import FunctionGraph, InconsistencyError
......
...@@ -11,7 +11,7 @@ from theano.gof.type import Type ...@@ -11,7 +11,7 @@ from theano.gof.type import Type
from theano.gof.op import Op from theano.gof.op import Op
from theano.gof import fg from theano.gof import fg
from theano.gof.link import * # noqa from theano.gof.link import PerformLinker, WrapLinker, Container
from theano.compat import cmp from theano.compat import cmp
......
...@@ -3,9 +3,11 @@ from __future__ import absolute_import, print_function, division ...@@ -3,9 +3,11 @@ from __future__ import absolute_import, print_function, division
from theano.gof.type import Type from theano.gof.type import Type
from theano.gof.graph import Variable, Apply, Constant from theano.gof.graph import Variable, Apply, Constant
from theano.gof.op import Op from theano.gof.op import Op
from theano.gof.opt import * # noqa from theano.gof.opt import (OpKeyOptimizer, PatternSub, TopoOptimizer, OpSub,
MergeOptimizer, config, theano,
EquilibriumOptimizer, logging, pre_constant_merge,
pre_greedy_local_optimizer)
from theano.gof.fg import FunctionGraph from theano.gof.fg import FunctionGraph
from theano.gof.toolbox import * # noqa
from theano import tensor as T from theano import tensor as T
......
...@@ -5,7 +5,7 @@ from theano.gof.type import Type ...@@ -5,7 +5,7 @@ from theano.gof.type import Type
from theano.gof.op import Op from theano.gof.op import Op
from theano.gof.fg import FunctionGraph from theano.gof.fg import FunctionGraph
from theano.gof.toolbox import * # noqa from theano.gof.toolbox import NodeFinder
def as_variable(x): def as_variable(x):
......
...@@ -30,7 +30,7 @@ __contact__ = "Saizheng Zhang <saizhenglisa..at..gmail.com>" ...@@ -30,7 +30,7 @@ __contact__ = "Saizheng Zhang <saizhenglisa..at..gmail.com>"
# - "'print_function' present" # - "'print_function' present"
# Redundant error code generated by flake8-future-import module # Redundant error code generated by flake8-future-import module
ignore = ('E501', 'E123', 'E133', 'FI12', 'FI14', 'FI15', 'FI16', 'FI17', ignore = ('E501', 'E123', 'E133', 'FI12', 'FI14', 'FI15', 'FI16', 'FI17',
'FI50', 'FI51', 'FI53', 'F405') 'FI50', 'FI51', 'FI53')
whitelist_flake8 = [ whitelist_flake8 = [
"compat/six.py", # This is bundled code that will be deleted, don't fix it "compat/six.py", # This is bundled code that will be deleted, don't fix it
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论