Skip to content

Commit dfa2b71

Browse files
committed
config: trivial rename for better readability
1 parent 24980fe commit dfa2b71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

electrum/simple_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ def get_decimal_point(self):
816816
return self.decimal_point
817817

818818
@cached_property
819-
def cv(self):
819+
def cv(config):
820820
"""Allows getting a reference to a config variable without dereferencing it.
821821
822822
Compare:
@@ -826,11 +826,11 @@ def cv(self):
826826
<ConfigVarWithConfig key='server'>
827827
"""
828828
class CVLookupHelper:
829-
def __getattribute__(self2, name: str) -> ConfigVarWithConfig:
830-
config_var = self.__class__.__getattribute__(type(self), name)
829+
def __getattribute__(self, name: str) -> ConfigVarWithConfig:
830+
config_var = config.__class__.__getattribute__(type(config), name)
831831
if not isinstance(config_var, ConfigVar):
832832
raise AttributeError()
833-
return ConfigVarWithConfig(config=self, config_var=config_var)
833+
return ConfigVarWithConfig(config=config, config_var=config_var)
834834
def __setattr__(self, name, value):
835835
raise Exception(
836836
f"Cannot assign value to config.cv.{name} directly. "

0 commit comments

Comments
 (0)