Skip to content

Commit

Permalink
removing the usage of has_key method of the Shortcut class (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
ye11owSub authored Jan 28, 2025
1 parent 7852010 commit 7124684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pymol/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _validate_value(type, value):
pass
return boolean_dict[boolean_sc.auto_err(str(value), "boolean")]
if type in (cSetting_int, cSetting_float):
if is_string(value) and boolean_sc.has_key(value):
if is_string(value) and value in boolean_sc:
value = boolean_dict[boolean_sc.auto_err(str(value), "boolean")]
if type == cSetting_int:
return int(value)
Expand Down

0 comments on commit 7124684

Please sign in to comment.