Skip to content

Commit 87854fd

Browse files
committed
add parens for clarity
1 parent 2c2b97a commit 87854fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/py_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def compile(file, cfile=None, dfile=None, doraise=False, optimize=-1,
154154
bytecode = importlib._bootstrap_external._code_to_hash_pyc(
155155
code,
156156
source_hash,
157-
invalidation_mode == PycInvalidationMode.CHECKED_HASH,
157+
(invalidation_mode == PycInvalidationMode.CHECKED_HASH),
158158
)
159159
mode = importlib._bootstrap_external._calc_mode(file)
160160
importlib._bootstrap_external._write_atomic(cfile, bytecode, mode)

0 commit comments

Comments
 (0)