Skip to content

Commit

Permalink
Avoid Python 3.8+ f-string debugging feature to restore 3.6+ compatib…
Browse files Browse the repository at this point in the history
…ility (#1092)

Fixes issue #1091
  • Loading branch information
Unactived authored Apr 23, 2024
1 parent 8031fda commit 92f45ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -9823,7 +9823,7 @@ def load_plugins_from_directory(plugin_directory: pathlib.Path):
directory = pathlib.Path(directory).expanduser().absolute()
if not directory.exists():
return 0
dbg(f"Loading extra plugins from {directory=}")
dbg(f"Loading extra plugins from directory={directory}")
return load_plugins_from_directory(directory)

@property
Expand Down Expand Up @@ -11006,7 +11006,7 @@ def __setitem__(self, name: str, value: Any) -> None:
setting = super().__getitem__(name)
if not isinstance(setting, GefSetting): raise TypeError
new_value = setting.type(value)
dbg(f"in __invoke_changed_hooks(\"{name}\"), {setting.value=} -> {new_value=}, changing={bool(setting.value != new_value)}")
dbg(f"in __invoke_changed_hooks(\"{name}\"), setting.value={setting.value} -> new_value={new_value}, changing={bool(setting.value != new_value)}")
self.__invoke_changed_hooks(setting, new_value)
self.__invoke_write_hooks(setting, new_value)
setting.value = new_value
Expand Down

0 comments on commit 92f45ba

Please sign in to comment.