Skip to content

Commit a6c5a4d

Browse files
committed
Fix assignment bug: use '=' instead of '=='
1 parent 4441e5a commit a6c5a4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipt/misc_tools/extract_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ def organize_sparse_representation(info: Union[dict,list]) -> dict:
260260

261261
# Redefine all 'yes' and 'no' values to bool
262262
for key, val in info.items():
263-
if val == 'yes': info[key] == True
264-
if val == 'no': info[key] == False
263+
if val == 'yes': info[key] = True
264+
if val == 'no': info[key] = False
265265

266266
# Intial dict
267267
sparse = {}

0 commit comments

Comments
 (0)