summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cliff/columns.py9
-rw-r--r--lower-constraints.txt2
-rw-r--r--setup.cfg1
3 files changed, 8 insertions, 4 deletions
diff --git a/cliff/columns.py b/cliff/columns.py
index abf1c4f..3b3c2bc 100644
--- a/cliff/columns.py
+++ b/cliff/columns.py
@@ -24,10 +24,14 @@ class FormattableColumn(object):
def __init__(self, value):
self._value = value
+ def __eq__(self, other):
+ return (
+ self.__class__ == other.__class__ and self._value == other._value
+ )
+
@abc.abstractmethod
def human_readable(self):
- """Return a basic human readable version of the data.
- """
+ """Return a basic human readable version of the data."""
def machine_readable(self):
"""Return a raw data structure using only Python built-in types.
@@ -35,6 +39,5 @@ class FormattableColumn(object):
It must be possible to serialize the return value directly
using a formatter like JSON, and it will be up to the
formatter plugin to decide how to make that transformation.
-
"""
return self._value
diff --git a/lower-constraints.txt b/lower-constraints.txt
index f98d024..4aef16d 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -10,7 +10,7 @@ GitPython==1.0.1
imagesize==0.7.1
Jinja2==2.10
linecache2==1.0.0
-MarkupSafe==1.0
+MarkupSafe==1.1.1
pbr==2.0.0
prettytable==0.7.2
Pygments==2.2.0
diff --git a/setup.cfg b/setup.cfg
index f755402..63ebbf7 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -13,6 +13,7 @@ classifier =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
+ Programming Language :: Python :: 3.8
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: Implementation :: CPython
Intended Audience :: Developers