Skip to content

Commit 00e43de

Browse files
author
Yang Yang
committed
python2 assert
1 parent d0016c9 commit 00e43de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/paddle/v2/fluid/framework.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,9 @@ def find_name(var_list, name):
434434
% (in_proto.name, len(in_args)))
435435
in_arg_names = []
436436
for arg in in_args:
437-
assert (isinstance(arg, Variable),
438-
"Input of an operator must be variables.")
437+
assert isinstance(
438+
arg,
439+
Variable), "Input of an operator must be variables."
439440
in_arg_names.append(arg.name)
440441
self.desc.set_input(in_proto.name, in_arg_names)
441442
else:

0 commit comments

Comments
 (0)