From 76bb2a5036127081561ffda8d9535ab65bb670e6 Mon Sep 17 00:00:00 2001 From: lin-hitonami Date: Tue, 25 Jan 2022 14:57:49 +0800 Subject: [PATCH] fix pylint --- python/taichi/lang/ast/ast_transformer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/taichi/lang/ast/ast_transformer.py b/python/taichi/lang/ast/ast_transformer.py index 24ae05fa329f6..9c68ee8f53145 100644 --- a/python/taichi/lang/ast/ast_transformer.py +++ b/python/taichi/lang/ast/ast_transformer.py @@ -1081,9 +1081,9 @@ def build_IfExp(ctx, node): node.ptr = ti_ops.select(node.test.ptr, node.body.ptr, node.orelse.ptr) warnings.warn_explicit( - f'Using conditional expression for element-wise select operation on ' - f'Taichi vectors/matrices is deprecated. ' - f'Please use "ti.select" instead.', DeprecationWarning, + 'Using conditional expression for element-wise select operation on ' + 'Taichi vectors/matrices is deprecated. ' + 'Please use "ti.select" instead.', DeprecationWarning, ctx.file, node.lineno + ctx.lineno_offset) return node.ptr