configutils.Values: Add __repr__

This commit is contained in:
Florian Bruhin 2018-02-20 06:21:11 +01:00
parent 316b4b5340
commit ab02fcb116

View File

@ -23,6 +23,8 @@
import attr
from qutebrowser.utils import utils
class _UnsetObject:
@ -74,6 +76,10 @@ class Values:
self.opt = opt
self._values = []
def __repr__(self):
return utils.get_repr(self, opt=self.opt, values=self._values,
constructor=True)
def __str__(self):
"""Get the values as human-readable string."""
if not self: