aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/PyHamcrest/src/hamcrest/core/selfdescribingvalue.py
diff options
context:
space:
mode:
authorasatarin <asatarin@yandex-team.ru>2022-02-10 16:47:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:30 +0300
commit4ca29390ac54b7877174de542de47532c67453b5 (patch)
tree14f6fc2edf989ce65a7555e8882e3eae3e9306fe /contrib/python/PyHamcrest/src/hamcrest/core/selfdescribingvalue.py
parent05f59b2581f074c756adaee6b260014ac3a0c3ec (diff)
downloadydb-4ca29390ac54b7877174de542de47532c67453b5.tar.gz
Restoring authorship annotation for <asatarin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/PyHamcrest/src/hamcrest/core/selfdescribingvalue.py')
-rw-r--r--contrib/python/PyHamcrest/src/hamcrest/core/selfdescribingvalue.py54
1 files changed, 27 insertions, 27 deletions
diff --git a/contrib/python/PyHamcrest/src/hamcrest/core/selfdescribingvalue.py b/contrib/python/PyHamcrest/src/hamcrest/core/selfdescribingvalue.py
index dfa4e3a20e..c3f31d43b4 100644
--- a/contrib/python/PyHamcrest/src/hamcrest/core/selfdescribingvalue.py
+++ b/contrib/python/PyHamcrest/src/hamcrest/core/selfdescribingvalue.py
@@ -1,27 +1,27 @@
-from hamcrest.core.selfdescribing import SelfDescribing
-
-import warnings
-
-__author__ = "Jon Reid"
-__copyright__ = "Copyright 2011 hamcrest.org"
-__license__ = "BSD, see License.txt"
-
-
-class SelfDescribingValue(SelfDescribing):
- """Wrap any value in a ``SelfDescribingValue`` to satisfy the
- :py:class:`~hamcrest.core.selfdescribing.SelfDescribing` interface.
-
- **Deprecated:** No need for this class now that
- :py:meth:`~hamcrest.core.description.Description.append_description_of`
- handles any type of value.
-
- """
-
- def __init__(self, value):
- warnings.warn('SelfDescribingValue no longer needed',
- DeprecationWarning)
- self.value = value
-
- def describe_to(self, description):
- """Generates a description of the value."""
- description.append_value(self.value)
+from hamcrest.core.selfdescribing import SelfDescribing
+
+import warnings
+
+__author__ = "Jon Reid"
+__copyright__ = "Copyright 2011 hamcrest.org"
+__license__ = "BSD, see License.txt"
+
+
+class SelfDescribingValue(SelfDescribing):
+ """Wrap any value in a ``SelfDescribingValue`` to satisfy the
+ :py:class:`~hamcrest.core.selfdescribing.SelfDescribing` interface.
+
+ **Deprecated:** No need for this class now that
+ :py:meth:`~hamcrest.core.description.Description.append_description_of`
+ handles any type of value.
+
+ """
+
+ def __init__(self, value):
+ warnings.warn('SelfDescribingValue no longer needed',
+ DeprecationWarning)
+ self.value = value
+
+ def describe_to(self, description):
+ """Generates a description of the value."""
+ description.append_value(self.value)