summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Schwab <git@nicholas-schwab.de>2021-04-08 17:16:51 +0200
committerNicholas Schwab <git@nicholas-schwab.de>2021-04-08 17:16:51 +0200
commit082f7562babfa97affc8823db896c85a8e3e1c93 (patch)
treee83d0db8a11ffcfaf289c5c4440e051714f7948a
parent706bdc23270da08f0cd91ab5a71ba1ddf8ce5683 (diff)
downloadqutebrowser-082f7562babfa97affc8823db896c85a8e3e1c93.tar.gz
qutebrowser-082f7562babfa97affc8823db896c85a8e3e1c93.zip
Let ValidPrefixes __iter__ fit the keys in descriptions.
-rw-r--r--qutebrowser/config/configtypes.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py
index 37cd1b68c..55fc36e83 100644
--- a/qutebrowser/config/configtypes.py
+++ b/qutebrowser/config/configtypes.py
@@ -151,9 +151,6 @@ class ValidPrefixes(ValidValues):
def __contains__(self, item) -> bool:
return any(map(lambda x: item.startswith(x + self.separator), self.values))
- def __iter__(self) -> Iterator[str]:
- return map(lambda x: x + self.separator, super().__iter__())
-
def __repr__(self) -> str:
return utils.get_repr(self, values=self.values, separator=self.separator,
descriptions=self.descriptions)