Skip to content

Commit e177deb

Browse files
committed
cleanup
1 parent 8d7c8b3 commit e177deb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/flynt/transform/percent_transformer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from flynt.exceptions import ConversionRefused, FlyntException
77
from flynt.transform.format_call_transforms import ast_formatted_value, ast_string_node
8-
from flynt.utils.utils import get_str_value, is_str_constant, is_str_literal
8+
from flynt.utils.utils import get_str_value, is_str_constant
99

1010
FORMATS = "diouxXeEfFgGcrsa"
1111

@@ -263,8 +263,6 @@ def transform_generic(node: ast.BinOp, aggressive: int = 0) -> ast.JoinedStr:
263263
if has_dict_str_format:
264264
return transform_dict(node, aggressive=aggressive)
265265

266-
any(is_str_literal(n) for n in ast.walk(node.right))
267-
268266
# if it's just a name then pretend it's tuple to use that code
269267
node.right = ast.Tuple(elts=[node.right])
270268
return transform_tuple(node, aggressive=aggressive)

0 commit comments

Comments
 (0)