Skip to content

Commit 58dd73b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fb975d4 commit 58dd73b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

papermill/translators.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ def _count_assignment_operators(line):
2121
"""
2222
try:
2323
tokens = tokenize.tokenize(io.BytesIO(line.encode("utf-8")).readline)
24-
return sum(
25-
1 for tok in tokens if tok.type == tokenize.OP and tok.string == "="
26-
)
24+
return sum(1 for tok in tokens if tok.type == tokenize.OP and tok.string == "=")
2725
except (tokenize.TokenError, SyntaxError):
2826
return line.count("=")
2927

0 commit comments

Comments
 (0)