configutils.Values: Add __repr__
This commit is contained in:
parent
316b4b5340
commit
ab02fcb116
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
import attr
|
import attr
|
||||||
|
|
||||||
|
from qutebrowser.utils import utils
|
||||||
|
|
||||||
|
|
||||||
class _UnsetObject:
|
class _UnsetObject:
|
||||||
|
|
||||||
@ -74,6 +76,10 @@ class Values:
|
|||||||
self.opt = opt
|
self.opt = opt
|
||||||
self._values = []
|
self._values = []
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return utils.get_repr(self, opt=self.opt, values=self._values,
|
||||||
|
constructor=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
"""Get the values as human-readable string."""
|
"""Get the values as human-readable string."""
|
||||||
if not self:
|
if not self:
|
||||||
|
Loading…
Reference in New Issue
Block a user